From: cilix42 Date: Mon, 18 Aug 2008 18:04:54 +0000 (+0000) Subject: Don't unnecessarily block button press X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2c4d6b654a0004de29105da315a6c42c6e52eb7;p=inkscape.git Don't unnecessarily block button press --- 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 -//#include #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;