Revision: 2194 http://geany.svn.sourceforge.net/geany/?rev=2194&view=rev Author: eht16 Date: 2008-01-27 10:27:33 -0800 (Sun, 27 Jan 2008)
Log Message: ----------- Fix crash on Windows when printing an untitled file. Fix black line number margin when printing by using also pre-defined styles.
Modified Paths: -------------- trunk/ChangeLog trunk/src/printing.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-01-27 17:44:18 UTC (rev 2193) +++ trunk/ChangeLog 2008-01-27 18:27:33 UTC (rev 2194) @@ -1,3 +1,11 @@ +2008-01-27 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/printing.c: + Fix crash on Windows when printing an untitled file. + Fix black line number margin when printing by using also pre-defined + styles. + + 2008-01-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/project.c:
Modified: trunk/src/printing.c =================================================================== --- trunk/src/printing.c 2008-01-27 17:44:18 UTC (rev 2193) +++ trunk/src/printing.c 2008-01-27 18:27:33 UTC (rev 2194) @@ -434,6 +434,8 @@
// read all styles from Scintilla style_max = pow(2, scintilla_send_message(doc_list[dinfo->idx].sci, SCI_GETSTYLEBITS, 0, 0)); + if (style_max == 32) // if the lexer uses only the first 32 styles(style bits = 5), we need + style_max = STYLE_LASTPREDEFINED; // to add the pre-defined styles for (i = 0; i < style_max; i++) { dinfo->styles[i][FORE] = ROTATE_RGB(scintilla_send_message(
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.