Commit 8525b85
Do not call redraw in export
Changed files (3)
modifiedlibbirdfont/Glyph.valamodifiedlibbirdfont/GlyphCanvas.valamodifiedlibbirdfont/VersionList.vala
Diff
@@ -1938,6 +1938,7 @@ public class Glyph : FontDisplay { } if (finger == 1) {+ warning (@"dx $dx dy $dy last_tap1_x $last_tap1_x last_tap1_y $last_tap1_y x $x y $y"); move_view (dx, dy); } @@ -83,13 +83,17 @@ public class GlyphCanvas : GLib.Object { } public void redraw_area (int x, int y, int w, int h) { - signal_redraw_area (x, y, w, h); + if (MenuTab.suppress_event) { + warning ("Do not call redraw from background thread."); + } else { + signal_redraw_area (x, y, w, h);; + } } public static void redraw () { GlyphCanvas c = MainWindow.get_glyph_canvas (); if (!is_null (c)) { - c.signal_redraw_area (0, 0, allocation.width, allocation.height); + c.redraw_area (0, 0, allocation.width, allocation.height); } } } @@ -144,7 +144,7 @@ public class VersionList : DropMenu { reload_all_open_glyphs (); g.set_allocation (current_glyph.allocation);- g.default_zoom ();+ g.set_default_zoom (); } /** Reload a glyph when a new version is selected. Updates the path