Commit c7b9ee4
Clear glyph cache in overview
Changed files (2)
Diff
@@ -421,8 +421,17 @@ public class OverView : FontDisplay { OverViewItem.margin = OverViewItem.DEFAULT_MARGIN * z; update_item_list (); OverViewItem.reset_label ();- GlyphCanvas.redraw (); Preferences.set ("overview_zoom", @"$zoom");++ Font font = BirdFont.get_current_font ();+ for (int index = 0; index < font.length (); index++) {+ GlyphCollection? glyphs = font.get_glyph_collection_index ((uint32) index);+ return_if_fail (glyphs != null);+ GlyphCollection g = (!) glyphs;+ g.get_current ().overview_thumbnail = null;+ }+ + GlyphCanvas.redraw (); } public override void zoom_min () {@@ -102,7 +102,7 @@ public class OverViewItem : GLib.Object { g = ((!) glyphs).get_current (); - if (g.overview_thumbnail != null) {+ if (likely (g.overview_thumbnail != null)) { cache = g.overview_thumbnail; return; }@@ -135,6 +135,8 @@ public class OverViewItem : GLib.Object { c.restore (); cache = s;+ g.overview_thumbnail = s;+ GlyphCanvas.redraw (); }