summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4634a6e)
raw | patch | inline | side by side (parent: 4634a6e)
author | cilix42 <cilix42@users.sourceforge.net> | |
Tue, 29 Jan 2008 21:00:51 +0000 (21:00 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Tue, 29 Jan 2008 21:00:51 +0000 (21:00 +0000) |
src/pencil-context.cpp | patch | blob | history |
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 97d49b6ab5d2f97d627a98c601d475aa4e7c5d82..1088e19ed9f3a299a5d9881cc08b18776f0d8a2d 100644 (file)
--- 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;