diff options
Diffstat (limited to 'src/path-chemistry.cpp')
| -rw-r--r-- | src/path-chemistry.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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; |
