diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-02-25 10:11:26 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-02-25 10:11:26 +0000 |
| commit | 339b65b1a02890ff07daedf9091a81e8f9737d10 (patch) | |
| tree | ac153c7d9f5a3c8b10bc8436acecfe64c5b50dad /src/path-chemistry.cpp | |
| parent | fix-render-of-zero-dimension-rects (diff) | |
| download | inkscape-339b65b1a02890ff07daedf9091a81e8f9737d10.tar.gz inkscape-339b65b1a02890ff07daedf9091a81e8f9737d10.zip | |
fix converting 3d boxes to path and ungrouping - do not lose selection, preserve style, id and clip/mask
(bzr r4849)
Diffstat (limited to 'src/path-chemistry.cpp')
| -rw-r--r-- | src/path-chemistry.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index 254a00e27..7466a7066 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -297,12 +297,13 @@ sp_selected_path_to_curves0(gboolean interactive, guint32 /*text_grouping_policy 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); + Inkscape::XML::Node *repr = box3d_convert_to_group(SP_BOX3D(item)); + + if (repr) { + to_select = g_slist_prepend (to_select, repr); + did = true; + selected = g_slist_remove (selected, item); + } continue; } |
