diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-01-09 02:40:03 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-01-09 02:40:03 +0000 |
| commit | e02a2538ec72f8d8aaaab5f62b5fb57da9ca1cdc (patch) | |
| tree | 2b7f78d4304636620999003baa1efd7601f942d7 /src/path-chemistry.cpp | |
| parent | Khmer translations updated (diff) | |
| download | inkscape-e02a2538ec72f8d8aaaab5f62b5fb57da9ca1cdc.tar.gz inkscape-e02a2538ec72f8d8aaaab5f62b5fb57da9ca1cdc.zip | |
Convert 3D boxes to ordinary groups before tweaking, ungrouping or applying 'convert to path' (closes LP #179693 and #176646).
(bzr r4439)
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; |
