Commit c797360
Reset thumbnails after updating path orientation in the overview tab
Changed files (2)
Diff
@@ -682,6 +682,15 @@ public class OverView : FontDisplay { update_scheduled = false; } + public void reset_thumbnails () {+ for (int i = 0; i < visible_items.size; i++) {+ OverViewItem item = visible_items.get (i);+ item.clear_cache ();+ }+ + update_item_list ();+ }+ public override void draw (WidgetAllocation allocation, Context cr) { if (update_scheduled || this.allocation.width != allocation.width@@ -1,5 +1,5 @@ /*- Copyright (C) 2014 2015 Johan Mattsson+ Copyright (C) 2014 2015 2016 Johan Mattsson This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -179,7 +179,9 @@ public class OverviewTools : ToolCollection { IdleSource idle = new IdleSource (); idle.set_callback (() => { self.set_selected (false);- BirdFont.get_current_font ().touch (); + BirdFont.get_current_font ().touch ();+ MainWindow.get_overview ().reset_thumbnails (); + GlyphCanvas.redraw (); return false; }); idle.attach (null);