summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-04-29 21:05:57 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-04-29 21:05:57 +0000
commite456ba7e88fe70158654fd3854dd6e02f111541b (patch)
treede231b07f1803c40e41be04acab2caf822de6c33 /src/selection-chemistry.cpp
parentFIX for BUG 368879: crash on 'save a copy as' when document has no filename yet (diff)
downloadinkscape-e456ba7e88fe70158654fd3854dd6e02f111541b.tar.gz
inkscape-e456ba7e88fe70158654fd3854dd6e02f111541b.zip
Make sure that the item center (origin for rotations) does not change due to copy & paste (Fixes bug #320489)
(bzr r7797)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 8e9bf45da..9d60399fe 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -1289,7 +1289,7 @@ void sp_selection_apply_affine(Inkscape::Selection *selection, Geom::Matrix cons
// if we're moving the actual object, not just updating the repr, we can transform the
// center by the same matrix (only necessary for non-translations)
- if (set_i2d && item->isCenterSet() && !affine.isTranslation()) {
+ if (set_i2d && item->isCenterSet() && !(affine.isTranslation() || affine.isIdentity())) {
item->setCenter(old_center * affine);
SP_OBJECT(item)->updateRepr();
}