diff options
| author | Thomas Holder <speleo3@users.sourceforge.net> | 2008-12-21 01:03:08 +0000 |
|---|---|---|
| committer | speleo3 <speleo3@users.sourceforge.net> | 2008-12-21 01:03:08 +0000 |
| commit | 214694486cc871702b22574120586a450f1fa95f (patch) | |
| tree | 83d5b14959a66cc094546eb74460f669719c0f62 /src/sp-item.cpp | |
| parent | Some accuracy improvements for ComponentTransfer filters (should also be some... (diff) | |
| download | inkscape-214694486cc871702b22574120586a450f1fa95f.tar.gz inkscape-214694486cc871702b22574120586a450f1fa95f.zip | |
revert change of sp_item_i2d_affine in rev 20388, as it crashed command line use
(bzr r7020)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index fb13b1770..b5d9050c6 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1553,8 +1553,10 @@ Geom::Matrix sp_item_i2d_affine(SPItem const *item) g_assert(item != NULL); g_assert(SP_IS_ITEM(item)); - SPDesktop *desktop = inkscape_active_desktop(); - return sp_item_i2doc_affine(item) * desktop->doc2dt(); + 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; } void sp_item_set_i2d_affine(SPItem *item, Geom::Matrix const &i2dt) |
