summaryrefslogtreecommitdiffstats
path: root/src/lpe-tool-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-18 18:04:54 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-18 18:04:54 +0000
commitecdee42c55e0beabd11f42a800eba25dae5f60cf (patch)
treee70b53a6e8a2f98a25aa619d1f0b9875f1ada70a /src/lpe-tool-context.cpp
parentOption to display measuring info in geometry tool (diff)
downloadinkscape-ecdee42c55e0beabd11f42a800eba25dae5f60cf.tar.gz
inkscape-ecdee42c55e0beabd11f42a800eba25dae5f60cf.zip
Don't unnecessarily block button press
(bzr r6698)
Diffstat (limited to 'src/lpe-tool-context.cpp')
-rw-r--r--src/lpe-tool-context.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lpe-tool-context.cpp b/src/lpe-tool-context.cpp
index ed243c1b2..9c8b5fea3 100644
--- a/src/lpe-tool-context.cpp
+++ b/src/lpe-tool-context.cpp
@@ -19,7 +19,6 @@
#include <2geom/sbasis-geometric.h>
#include <gdk/gdkkeysyms.h>
-//#include <gtk/gtkobject.h>
#include "macros.h"
#include "forward.h"
@@ -224,14 +223,14 @@ sp_lpetool_context_root_handler(SPEventContext *event_context, GdkEvent *event)
switch (event->type) {
case GDK_BUTTON_PRESS:
- if (lc->mode == Inkscape::LivePathEffect::INVALID_LPE) {
- // don't do anything for now if we are inactive
- desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Choose a construction tool from the toolbar."));
- ret = true;
- break;
- }
-
if (event->button.button == 1 && !event_context->space_panning) {
+ if (lc->mode == Inkscape::LivePathEffect::INVALID_LPE) {
+ // don't do anything for now if we are inactive
+ desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Choose a construction tool from the toolbar."));
+ ret = true;
+ break;
+ }
+
// save drag origin
event_context->xp = (gint) event->button.x;
event_context->yp = (gint) event->button.y;