Clone in a terminal:
Commit 8c9c477
Johan Mattsson - 2015-05-23T13:34:06+00:00
8c9c47711bd0a65eb158e7183c338982e205e0f6johan.mattsson.m@gmail.com

Default zoom for new glyph versions

Changed files (2)

Diff

diff --git a/libbirdfont/OverViewItem.vala b/libbirdfont/OverViewItem.valaindex bba5f6a..438ecc0 100644--- a/libbirdfont/OverViewItem.vala+++ b/libbirdfont/OverViewItem.vala@@ -54,6 +54,7 @@ public class OverViewItem : GLib.Object { 			version_menu.add_glyph_item.connect ((glyph) => { 				((!) glyphs).insert_glyph (glyph, true); 			});+			 			version_menu.signal_delete_item.connect ((glyph_index) => { 				OverView v = MainWindow.get_overview (); 				version_menu = new VersionList ((!) glyphs);diff --git a/libbirdfont/VersionList.vala b/libbirdfont/VersionList.valaindex 31b9b91..eedfabc 100644--- a/libbirdfont/VersionList.vala+++ b/libbirdfont/VersionList.vala@@ -120,8 +120,6 @@ public class VersionList : GLib.Object { 			int i = get_current_version_index (); 			set_selected_item (get_action_index (i)); 		}-		-		get_current ().selected_canvas (); 	}  	private int get_current_version_index () {@@ -191,18 +189,16 @@ public class VersionList : GLib.Object { 		deselect_all (); 		ma.set_selected (true); 		-		reload_all_open_glyphs ();-		 		glyph_collection.set_selected (g); 		-		/*+		reload_all_open_glyphs ();+ 		if (!is_null (BirdFont.current_glyph_collection)) { 			current_glyph = MainWindow.get_current_glyph (); 			g.set_allocation (current_glyph.allocation);-			g.set_default_zoom ();-		}-		*/-		+			g.close_path ();+			g.reset_zoom ();+		}		 	} 	 	/** Reload a glyph when a new version is selected. Updates the path

Contact

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