diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 18:04:54 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 18:04:54 +0000 |
| commit | ecdee42c55e0beabd11f42a800eba25dae5f60cf (patch) | |
| tree | e70b53a6e8a2f98a25aa619d1f0b9875f1ada70a /src | |
| parent | Option to display measuring info in geometry tool (diff) | |
| download | inkscape-ecdee42c55e0beabd11f42a800eba25dae5f60cf.tar.gz inkscape-ecdee42c55e0beabd11f42a800eba25dae5f60cf.zip | |
Don't unnecessarily block button press
(bzr r6698)
Diffstat (limited to 'src')
| -rw-r--r-- | src/lpe-tool-context.cpp | 15 |
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; |
