summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-09-08 14:31:49 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-09-08 14:31:49 +0000
commit4247498af6a70f9975b1f31814a0f21dd04a8b11 (patch)
treefaca313eb8f05ddb047fe4369a80c4502d4d2342 /src
parentWarning cleanup (diff)
downloadinkscape-4247498af6a70f9975b1f31814a0f21dd04a8b11.tar.gz
inkscape-4247498af6a70f9975b1f31814a0f21dd04a8b11.zip
Unselet item in geometry tool when the user clicked into empty space
(bzr r6781)
Diffstat (limited to 'src')
-rw-r--r--src/lpe-tool-context.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lpe-tool-context.cpp b/src/lpe-tool-context.cpp
index ec4cd0689..b001214cf 100644
--- a/src/lpe-tool-context.cpp
+++ b/src/lpe-tool-context.cpp
@@ -263,7 +263,9 @@ sp_lpetool_context_root_handler(SPEventContext *event_context, GdkEvent *event)
case GDK_BUTTON_PRESS:
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
+ // don't do anything for now if we are inactive (except clearing the selection
+ // since this was a click into empty space)
+ selection->clear();
desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Choose a construction tool from the toolbar."));
ret = true;
break;