summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-07-17 19:47:09 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-07-17 19:47:09 +0000
commiteed6e9c2c229b10911a23976c47da79fc70a5b87 (patch)
treecf0be87e45680dac877bec1cd628b86fe020cf7e /src/desktop.cpp
parentFix build failures on make check (diff)
downloadinkscape-eed6e9c2c229b10911a23976c47da79fc70a5b87.tar.gz
inkscape-eed6e9c2c229b10911a23976c47da79fc70a5b87.zip
- rename SPItem::i2d_affine to i2dt_affine, to clarify that it is item-to-desktop, not item-to-document. This should make it easier to spot bugs.
- tag some instances where the document-to-desktop transform has been hardcoded (bzr r10466)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 7034e85b6..5e968b08b 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -1816,8 +1816,7 @@ Geom::Affine SPDesktop::doc2dt() const
Geom::Affine SPDesktop::dt2doc() const
{
- // doc2dt is its own inverse
- return _doc2dt;
+ return _doc2dt.inverse();
}
Geom::Point SPDesktop::doc2dt(Geom::Point const &p) const