From 79fbaa4426aa45b43b33fa3f319df72e5057c96a Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 28 Mar 2007 00:49:11 +0000 Subject: Add shift+click to union new fill with old selection (bzr r2773) --- src/flood-context.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/flood-context.cpp') diff --git a/src/flood-context.cpp b/src/flood-context.cpp index 40c6c4190..f377d6b94 100644 --- a/src/flood-context.cpp +++ b/src/flood-context.cpp @@ -784,8 +784,16 @@ static gint sp_flood_context_root_handler(SPEventContext *event_context, GdkEven // Since setWaitingCursor runs main loop iterations, we may have already left this tool! // So check if the tool is valid before doing anything + Inkscape::Selection *selection = sp_desktop_selection(desktop); + GSList *items = g_slist_copy((GSList *) selection->itemList()); + sp_flood_do_flood_fill(event_context, event); - + + if (event->button.state & GDK_SHIFT_MASK) { + selection->addList(items); + sp_selected_path_union(); + } + // restore cursor when done; note that it may already be different if e.g. user // switched to another tool during interruptible tracing or drawing, in which case do nothing desktop->clearWaitingCursor(); -- cgit v1.2.3