summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2009-04-26 18:55:38 +0000
committertweenk <tweenk@users.sourceforge.net>2009-04-26 18:55:38 +0000
commit0776e26f34d57fc36d92457707693a84e34c971f (patch)
tree10e28faa74a92022bf271ada17a80cae2fb052d5 /src/pen-context.cpp
parentAdd Tango icon set from Jesusda. (diff)
downloadinkscape-0776e26f34d57fc36d92457707693a84e34c971f.tar.gz
inkscape-0776e26f34d57fc36d92457707693a84e34c971f.zip
Do not end path editing on double-clicks other than first mouse button
in the pen tool. Fixes horizontal scrolling with tilt wheels while drawing a path. (bzr r7776)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index beece2b31..61b7a0eb8 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -852,7 +852,8 @@ static gint
pen_handle_2button_press(SPPenContext *const pc, GdkEventButton const &bevent)
{
gint ret = FALSE;
- if (pc->npoints != 0 && bevent.button != 2) {
+ // only end on LMB double click. Otherwise horizontal scrolling causes ending of the path
+ if (pc->npoints != 0 && bevent.button == 1) {
spdc_pen_finish(pc, FALSE);
ret = TRUE;
}