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.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.cpp')
| -rw-r--r-- | src/sp-item.cpp | 5 |
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 { |
