The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Close path with middle button in Beziér tool

These changes was commited to the Birdfont repository Mon, 20 Apr 2015 10:18:35 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Mon, 20 Apr 2015 10:18:35 +0000]

Updated Files

libbirdfont/ForesightTool.vala
--- a/libbirdfont/ForesightTool.vala +++ b/libbirdfont/ForesightTool.vala @@ -65,6 +65,15 @@ PointSelection ps; EditPoint first_point; bool clockwise; + + if (b == 2) { + p.release_action (p, 1, x, y); + p.press_action (p, 2, x, y); + p.release_action (p, 2, x, y); + current_path.hide_end_handle = true; + state = NONE; + return; + } MainWindow.get_current_glyph ().store_undo_state (); @@ -180,6 +189,10 @@ PointSelection last; bool lh; EditPointHandle h; + + if (state == NONE) { + return; + } last_move_x = x; last_move_y = y;