diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-01-29 21:00:51 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-01-29 21:00:51 +0000 |
| commit | d323c9b64f1998bf5051b9dc4c9dc5118c4a8bc3 (patch) | |
| tree | b979e435edf66e4981cfa143715aa42cb6b8acb0 /src/pencil-context.cpp | |
| parent | Add jfb to Authors (diff) | |
| download | inkscape-d323c9b64f1998bf5051b9dc4c9dc5118c4a8bc3.tar.gz inkscape-d323c9b64f1998bf5051b9dc4c9dc5118c4a8bc3.zip | |
Don't freeze when pressing Ctrl in the pencil tool (closes: LP #181898)
(bzr r4615)
Diffstat (limited to 'src/pencil-context.cpp')
| -rw-r--r-- | src/pencil-context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index 97d49b6ab..1088e19ed 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -265,9 +265,10 @@ pencil_handle_button_press(SPPencilContext *const pc, GdkEventButton const &beve static gint pencil_handle_motion_notify(SPPencilContext *const pc, GdkEventMotion const &mevent) { - if (mevent.state & GDK_CONTROL_MASK) { + if ((mevent.state & GDK_CONTROL_MASK) && (mevent.state & GDK_BUTTON1_MASK)) { // mouse was accidentally moved during Ctrl+click; // ignore the motion and create a single point + pc->is_drawing = false; return TRUE; } gint ret = FALSE; |
