The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix point selection

These changes was commited to the Birdfont repository Sun, 21 Jun 2015 10:50:37 +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>
Sun, 21 Jun 2015 10:50:37 +0000 (12:50 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 21 Jun 2015 10:50:37 +0000 (12:50 +0200)
commit 3aa1e1cfb08f95cbd278cfd48a7765ab00c10fa2
tree f26ff79c866ac0027262765d8fff89f3d2ca21a9
parent 0133668cd3280f36895fc3b0c3ddec7f20601749
Fix point selection

libbirdfont/PenTool.vala
--- a/libbirdfont/PenTool.vala +++ b/libbirdfont/PenTool.vala @@ -1875,7 +1875,7 @@ } } - return p.xmin - c - 10 <= x <= p.xmax + c && p.ymin - c - 10 <= y <= p.ymax + c; + return p.xmin - c - 10 <= x <= p.xmax + c + 10 && p.ymin - c - 10 <= y <= p.ymax + c + 10 ; } private bool is_close_to_handle (EditPoint selected_corner, double event_x, double event_y, double distance_to_edit_point) {