From b57b8a10dacd917afbfdc62fa9870f9a14271337 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Mon, 8 Sep 2008 14:31:49 +0000 Subject: [PATCH] Unselet item in geometry tool when the user clicked into empty space --- src/lpe-tool-context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2