diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-06-16 15:45:16 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-06-16 15:45:16 +0000 |
| commit | 2fe578b9f375c9d63576c59356f621a5a92e12a6 (patch) | |
| tree | 13c1dfc60377a88df3cec3d492cca0e7a2591bab /src/selection.cpp | |
| parent | minor tweak for portability. linux compile was broken (diff) | |
| download | inkscape-2fe578b9f375c9d63576c59356f621a5a92e12a6.tar.gz inkscape-2fe578b9f375c9d63576c59356f621a5a92e12a6.zip | |
First step towards making helper paths for LPE items work better
(bzr r5954)
Diffstat (limited to 'src/selection.cpp')
| -rw-r--r-- | src/selection.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/selection.cpp b/src/selection.cpp index acab9396c..33be17a8e 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -192,6 +192,10 @@ void Selection::_add(SPObject *obj) { add_3D_boxes_recursively(obj); + if (SP_IS_LPE_ITEM(obj)) { + sp_lpe_item_add_temporary_canvasitems(SP_LPE_ITEM(obj), desktop()); + } + _release_connections[obj] = obj->connectRelease(sigc::mem_fun(*this, (void (Selection::*)(SPObject *))&Selection::remove)); _modified_connections[obj] = obj->connectModified(sigc::mem_fun(*this, &Selection::_schedule_modified)); } @@ -258,6 +262,10 @@ void Selection::_remove(SPObject *obj) { remove_3D_boxes_recursively(obj); + if (SP_IS_LPE_ITEM(obj)) { + sp_lpe_item_remove_temporary_canvasitems(SP_LPE_ITEM(obj), desktop()); + } + _objs = g_slist_remove(_objs, obj); } |
