diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2014-07-12 13:32:27 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2014-07-12 13:32:27 +0000 |
| commit | f50d13ff0fa4de4abf81251ec855ca0166db9050 (patch) | |
| tree | 9d48b3b6eb96c9c18706b65e5e0af67c6228fa1d /src/sp-item-group.cpp | |
| parent | scale tiled clones to document units (Bug 1288860) (diff) | |
| download | inkscape-f50d13ff0fa4de4abf81251ec855ca0166db9050.tar.gz inkscape-f50d13ff0fa4de4abf81251ec855ca0166db9050.zip | |
Fix moving of item center: 1) at paste and 2) at changing document units
Fixed bugs:
- https://launchpad.net/bugs/1247799
(bzr r13452)
Diffstat (limited to 'src/sp-item-group.cpp')
| -rw-r--r-- | src/sp-item-group.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index 2cfe97db8..7af4e3320 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -664,7 +664,8 @@ void SPGroup::scaleChildItemsRec(Geom::Scale const &sc, Geom::Point const &p) Geom::Point old_center(0,0); if (item->isCenterSet()) { - old_center = item->getCenter(); + 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; |
