summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2014-08-14 20:09:10 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2014-08-14 20:09:10 +0000
commit9fdd8f25ee0f04d337864c7ec5e3216dae727e3c (patch)
treed073668ec1fc35d95c1f59fe766411ef71915916 /src/selection-chemistry.cpp
parentRevert unintentional changes (diff)
downloadinkscape-9fdd8f25ee0f04d337864c7ec5e3216dae727e3c.tar.gz
inkscape-9fdd8f25ee0f04d337864c7ec5e3216dae727e3c.zip
Fix some transformation center regressions, related to the viewbox/units changes
(bzr r13512)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index f058189d3..868a9d743 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -1621,13 +1621,10 @@ void sp_selection_apply_affine(Inkscape::Selection *selection, Geom::Affine cons
item->doWriteTransform(item->getRepr(), item->transform, NULL, compensate);
}
- // if we're transforming the actual object, not just updating the repr, we can transform the
+ // 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() || affine.isIdentity())) {
- // If there's a viewbox, we might have an affine with a translation component;
- // we will only apply the scaling/skewing components, not the translations
- // because otherwise the center will move relative to the item
- item->setCenter(old_center * affine.withoutTranslation());
+ item->setCenter(old_center * affine);
item->updateRepr();
}
}