summaryrefslogtreecommitdiffstats
path: root/src/box3d.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-11-29 19:51:36 +0000
committerTed Gould <ted@gould.cx>2009-11-29 19:51:36 +0000
commit51a880db854a5959378d755b3049a168f634c071 (patch)
treeac1d51963375f9cbb14a730153447b01e981b620 /src/box3d.cpp
parentadding iffdefs for LCMS and fixing layout of CMS icons (diff)
parentDeprecation warning fix on xcf export (diff)
downloadinkscape-51a880db854a5959378d755b3049a168f634c071.tar.gz
inkscape-51a880db854a5959378d755b3049a168f634c071.zip
Updating to current trunk
(bzr r8050.1.16)
Diffstat (limited to 'src/box3d.cpp')
-rw-r--r--src/box3d.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp
index 5cffa66d9..93efa5c35 100644
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
@@ -335,7 +335,8 @@ box3d_set_transform(SPItem *item, Geom::Matrix const &xform)
Persp3D *persp = box3d_get_perspective(box);
Persp3D *transf_persp;
- if (!persp3d_has_all_boxes_in_selection (persp)) {
+ if (sp_desktop_document(inkscape_active_desktop()) == SP_OBJECT_DOCUMENT(item) &&
+ !persp3d_has_all_boxes_in_selection (persp)) {
std::list<SPBox3D *> selboxes = sp_desktop_selection(inkscape_active_desktop())->box3DList();
/* create a new perspective as a copy of the current one and link the selected boxes to it */