The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix selection in overview

Changes made to libbirdfont/OverView.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/OverView.vala +++ libbirdfont/OverView.vala @@ -605,7 +605,7 @@ if (selected >= visible_items.size) { selected = (int) (visible_items.size - 1); } - + selected_item = get_selected_item (); } @@ -644,7 +644,7 @@ if (first_visible < 0) { first_visible = 0; - } + } } public void key_left () { @@ -734,6 +734,11 @@ scroll_to_char (keyval); selected_item = get_selected_item (); + + selected_items.clear (); + if (selected_item.glyphs != null) { + selected_items.add ((!) selected_item.glyphs); + } } public void delete_selected_glyph () {