Revision: 4853 http://geany.svn.sourceforge.net/geany/?rev=4853&view=rev Author: ntrel Date: 2010-04-22 16:02:45 +0000 (Thu, 22 Apr 2010)
Log Message: ----------- Recalculate line margin width when zooming (fixes #2990553).
Modified Paths: -------------- trunk/ChangeLog trunk/src/editor.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-04-22 13:01:45 UTC (rev 4852) +++ trunk/ChangeLog 2010-04-22 16:02:45 UTC (rev 4853) @@ -9,6 +9,8 @@ * src/templates.c, src/templates.h, src/editor.c, doc/geany.txt, doc/geany.html: Support {pc} wildcard in snippets to escape percent char. + * src/editor.c: + Recalculate line margin width when zooming (fixes #2990553).
2010-04-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2010-04-22 13:01:45 UTC (rev 4852) +++ trunk/src/editor.c 2010-04-22 16:02:45 UTC (rev 4853) @@ -984,6 +984,11 @@ editor_show_calltip(editor, -1); } break; + + case SCN_ZOOM: + /* recalculate line margin width */ + sci_set_line_numbers(sci, editor_prefs.show_linenumber_margin, 0); + break; } /* we always return FALSE here to let plugins handle the event too */ return FALSE;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.