summaryrefslogtreecommitdiffstats
path: root/src/sp-item-group.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-08-17 14:58:39 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-08-17 14:58:39 +0000
commit2286e96fb2d97298adf9920902babc522dc80b66 (patch)
tree35063233ff3676c4df7def81bf7a7adc4b235eef /src/sp-item-group.cpp
parentClone Original -> Fill Between Many (diff)
parentUpdate to trunk r13525 (diff)
downloadinkscape-2286e96fb2d97298adf9920902babc522dc80b66.tar.gz
inkscape-2286e96fb2d97298adf9920902babc522dc80b66.zip
Update to experimental r13483
(bzr r13090.1.105)
Diffstat (limited to 'src/sp-item-group.cpp')
-rw-r--r--src/sp-item-group.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp
index 6c84679ef..79604446a 100644
--- a/src/sp-item-group.cpp
+++ b/src/sp-item-group.cpp
@@ -672,12 +672,6 @@ void SPGroup::scaleChildItemsRec(Geom::Scale const &sc, Geom::Point const &p)
Geom::Translate const s(p);
Geom::Affine final = s.inverse() * sc * s;
- Geom::Point old_center(0,0);
- if (item->isCenterSet()) {
- item->scaleCenter(sc.inverse()); // Convert the old relative center position to the new coordinates already now
- old_center = item->getCenter(); // because getCenter() will use the bbox midpoint, which is also already in the new coordinates
- }
-
gchar const *conn_type = NULL;
if (SP_IS_TEXT_TEXTPATH(item)) {
SP_TEXT(item)->optimizeTextpathText();
@@ -722,7 +716,7 @@ void SPGroup::scaleChildItemsRec(Geom::Scale const &sc, Geom::Point const &p)
}
if (item->isCenterSet() && !(final.isTranslation() || final.isIdentity())) {
- item->setCenter(old_center * final);
+ item->scaleCenter(sc); // All coordinates have been scaled, so also the center must be scaled
item->updateRepr();
}
}