summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-07-18 20:20:21 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-07-18 20:20:21 +0000
commite64932d2b80a507b0c8b3c2b575621005605be5c (patch)
treecf02243081d4b37a4e9ae74290eb50b3df005b7c /src
parentReplace NR_HUGE by Geom:infinity() in some snapping code (diff)
downloadinkscape-e64932d2b80a507b0c8b3c2b575621005605be5c.tar.gz
inkscape-e64932d2b80a507b0c8b3c2b575621005605be5c.zip
fix hardcoded desktop2doc transform
(bzr r10470)
Diffstat (limited to 'src')
-rw-r--r--src/sp-item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 905a8f2db..072d6d57b 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -1481,8 +1481,8 @@ void SPItem::set_i2d_affine(Geom::Affine const &i2dt)
if (parent) {
dt2p = static_cast<SPItem *>(parent)->i2dt_affine().inverse();
} else {
- dt2p = ( Geom::Translate(0, -document->getHeight())
- * Geom::Scale(1, -1) ); /// @fixme hardcoded doc2dt transform?
+ SPDesktop *dt = inkscape_active_desktop();
+ dt2p = dt->dt2doc();
}
Geom::Affine const i2p( i2dt * dt2p );