Revision: 5653 http://geany.svn.sourceforge.net/geany/?rev=5653&view=rev Author: ntrel Date: 2011-03-30 12:20:18 +0000 (Wed, 30 Mar 2011)
Log Message: ----------- Use STYLE_MAX instead of 127 for editor_set_font(). This fixes a crash in the Split Window plugin when changing filetype (patch by Matthew Brush, thanks; fixes #3255968).
Modified Paths: -------------- trunk/ChangeLog trunk/src/editor.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-03-29 23:52:03 UTC (rev 5652) +++ trunk/ChangeLog 2011-03-30 12:20:18 UTC (rev 5653) @@ -1,3 +1,11 @@ +2011-03-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/editor.c: + Use STYLE_MAX instead of 127 for editor_set_font(). This fixes a + crash in the Split Window plugin when changing filetype (patch by + Matthew Brush, thanks; fixes #3255968). + + 2011-03-30 Colomban Wendling <colomban(at)geany(dot)org>
* src/plugindata.h, src/pluginprivate.h, src/plugins.c,
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2011-03-29 23:52:03 UTC (rev 5652) +++ trunk/src/editor.c 2011-03-30 12:20:18 UTC (rev 5653) @@ -4478,7 +4478,7 @@ font_name = g_strdup_printf("!%s", pango_font_description_get_family(pfd)); pango_font_description_free(pfd);
- for (style = 0; style <= 127; style++) + for (style = 0; style <= STYLE_MAX; style++) sci_set_font(editor->sci, style, font_name, size);
/* line number and braces */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.