The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Default zoom for new glyph versions

Changes made to libbirdfont/VersionList.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/VersionList.vala +++ libbirdfont/VersionList.vala @@ -120,8 +120,6 @@ int i = get_current_version_index (); set_selected_item (get_action_index (i)); } - - get_current ().selected_canvas (); } private int get_current_version_index () { @@ -190,19 +188,17 @@ current_version_id = g.version_id; 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