summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2014-07-12 13:32:27 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2014-07-12 13:32:27 +0000
commitf50d13ff0fa4de4abf81251ec855ca0166db9050 (patch)
tree9d48b3b6eb96c9c18706b65e5e0af67c6228fa1d /src/sp-item.cpp
parentscale tiled clones to document units (Bug 1288860) (diff)
downloadinkscape-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.cpp')
-rw-r--r--src/sp-item.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index b10aae1c6..0cdff6546 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -271,6 +271,11 @@ Geom::Point SPItem::getCenter() const {
}
}
+void
+SPItem::scaleCenter(Geom::Scale const &sc) {
+ transform_center_x *= sc[Geom::X];
+ transform_center_y *= sc[Geom::Y];
+}
namespace {