The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Redraw moving canvas and keep OTF feature tab open

Changes made to libbirdfont/OverviewTools.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/OverviewTools.vala +++ libbirdfont/OverviewTools.vala @@ -279,15 +279,16 @@ public void add_new_alternate (Tool tool) { OverView o = MainWindow.get_overview (); OverViewItem oi = o.selected_item; - GlyphCollection gc; + GlyphCollection? gc; tool.set_selected (false); - if (oi.glyphs == null || ((!) oi.glyphs).is_unassigned ()) { - return; + gc = (!) oi.glyphs; + + if (oi.glyphs != null && ((!) oi.glyphs).is_unassigned ()) { + gc = null; } - gc = (!) oi.glyphs; MainWindow.tabs.add_tab (new OtfFeatureTable (gc)); }