Code

Unselet item in geometry tool when the user clicked into empty space
authorcilix42 <cilix42@users.sourceforge.net>
Mon, 8 Sep 2008 14:31:49 +0000 (14:31 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Mon, 8 Sep 2008 14:31:49 +0000 (14:31 +0000)
src/lpe-tool-context.cpp

index ec4cd068948bee302d8a981b8ce424c1a7c19ecd..b001214cf29d0c40a5d16c66cb5b98d8033f13b6 100644 (file)
@@ -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;