The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Make sure state is reset for active tool when a new canvas is selected

These changes was commited to the Birdfont repository Mon, 20 Jun 2016 18:44:09 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 20 Jun 2016 18:44:09 +0000 (20:44 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 20 Jun 2016 18:44:09 +0000 (20:44 +0200)
commit 3a12b028170f035212b96db4a827dd7f1107b5fa
tree 6fe7c85626c195a5f5f7d57ff2caeefabf7d1784
parent 62ad1fea0ce69a2f418286e4d88964b59ce833c2
Make sure state is reset for active tool when a new canvas is selected

libbirdfont/Glyph.vala
--- a/libbirdfont/Glyph.vala +++ b/libbirdfont/Glyph.vala @@ -492,6 +492,9 @@ DrawingTools.update_layers (); MainWindow.get_toolbox ().update_expanders (); + + Tool current_tool = MainWindow.get_toolbox ().get_current_tool (); + current_tool.select_action (current_tool); } void update_zoom_bar () {