Commit 8c9c477
Default zoom for new glyph versions
Changed files (2)
Diff
@@ -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);@@ -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