Clone in a terminal:
Commit 7c825d4
Johan Mattsson - 2016-05-15T13:57:36+00:00
7c825d4ce1ca32cffcc4a2d6c500482d701d3fccjohan.mattsson.m@gmail.com

Update overview icons after transformations

Changed files (2)

Diff

diff --git a/libbirdfont/OverView.vala b/libbirdfont/OverView.valaindex 0140dd1..5582f2e 100644--- a/libbirdfont/OverView.vala+++ b/libbirdfont/OverView.vala@@ -50,7 +50,7 @@ public class OverView : FontDisplay { 	 	string search_query = ""; 	-	Gee.ArrayList<OverViewItem> visible_items = new Gee.ArrayList<OverViewItem> ();+	public Gee.ArrayList<OverViewItem> visible_items = new Gee.ArrayList<OverViewItem> (); 	 	/** List of undo commands. */ 	public Gee.ArrayList<OverViewUndoItem> undo_items = new Gee.ArrayList<OverViewUndoItem> ();@@ -1315,7 +1315,11 @@ public class OverView : FontDisplay { 					} 				} 				-				update = !i.version_menu.menu_visible;+				if (!is_null (i.version_menu)) {+					update = !i.version_menu.menu_visible;+				} else {+					update = true;+				} 			} 			index++; 		}diff --git a/libbirdfont/OverviewTools.vala b/libbirdfont/OverviewTools.valaindex b5bf30b..ac26ac4 100644--- a/libbirdfont/OverviewTools.vala+++ b/libbirdfont/OverviewTools.vala@@ -284,6 +284,10 @@ public class OverviewTools : ToolCollection  { 			} 		} 		+		foreach (OverViewItem item in o.visible_items) {+			item.draw_glyph_from_font ();	+		}+		 		o.undo_items.add (ui); 		GlyphCanvas.redraw (); 	}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112