From e02a2538ec72f8d8aaaab5f62b5fb57da9ca1cdc Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 9 Jan 2008 02:40:03 +0000 Subject: Convert 3D boxes to ordinary groups before tweaking, ungrouping or applying 'convert to path' (closes LP #179693 and #176646). (bzr r4439) --- src/path-chemistry.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index 744d5ede8..32e2a7bec 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -33,6 +33,7 @@ #include "message-stack.h" #include "selection.h" #include "desktop-handles.h" +#include "box3d.h" #include "path-chemistry.h" @@ -292,6 +293,18 @@ sp_selected_path_to_curves0(gboolean interactive, guint32 /*text_grouping_policy continue; // already a path, and no path effect } + if (SP_IS_BOX3D(item)) { + // convert 3D box to ordinary group of paths; replace the old element in 'selected' with the new group + GSList *sel_it = g_slist_find(selected, item); + sel_it->data = box3d_convert_to_group(SP_BOX3D(item)); + item = SP_ITEM(sel_it->data); + + did = true; + selected = g_slist_remove (selected, item); + + continue; + } + Inkscape::XML::Node *repr = sp_selected_item_to_curved_repr(item, 0); if (!repr) continue; -- cgit v1.2.3