diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-04-03 01:56:36 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-04-03 01:56:36 +0000 |
| commit | d12b9c9fa87c4fc4f7842e5d6512c4f17298cce7 (patch) | |
| tree | cdb8ffd82e49514e07101bc512f3344a63d0b596 /src/sp-item.cpp | |
| parent | Fix command line invocation on Windows (LP #167455). (diff) | |
| download | inkscape-d12b9c9fa87c4fc4f7842e5d6512c4f17298cce7.tar.gz inkscape-d12b9c9fa87c4fc4f7842e5d6512c4f17298cce7.zip | |
Initial fix for the inverted coordinate system bug
(bzr r9281.1.1)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index c4411e47d..f60a2b27a 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1574,8 +1574,7 @@ Geom::Matrix sp_item_i2d_affine(SPItem const *item) g_assert(SP_IS_ITEM(item)); Geom::Matrix const ret( sp_item_i2doc_affine(item) - * Geom::Scale(1, -1) - * Geom::Translate(0, sp_document_height(SP_OBJECT_DOCUMENT(item))) ); + ); return ret; } @@ -1588,8 +1587,7 @@ void sp_item_set_i2d_affine(SPItem *item, Geom::Matrix const &i2dt) if (SP_OBJECT_PARENT(item)) { dt2p = sp_item_i2d_affine((SPItem *) SP_OBJECT_PARENT(item)).inverse(); } else { - dt2p = ( Geom::Translate(0, -sp_document_height(SP_OBJECT_DOCUMENT(item))) - * Geom::Scale(1, -1) ); + dt2p = ( Geom::identity() ); } Geom::Matrix const i2p( i2dt * dt2p ); |
