From: speleo3 Date: Sun, 21 Dec 2008 01:03:08 +0000 (+0000) Subject: revert change of sp_item_i2d_affine in rev 20388, as it crashed command line use X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=123caab26399613386f5b6d52d05f8add6f70653;p=inkscape.git revert change of sp_item_i2d_affine in rev 20388, as it crashed command line use --- 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)