Code

rewrote the document list as a (SPDocument,use_count) map, incrementing use_count...
[inkscape.git] / 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;