From 123caab26399613386f5b6d52d05f8add6f70653 Mon Sep 17 00:00:00 2001 From: speleo3 Date: Sun, 21 Dec 2008 01:03:08 +0000 Subject: [PATCH] revert change of sp_item_i2d_affine in rev 20388, as it crashed command line use --- src/sp-item.cpp | 6 ++++-- 1 file 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) -- 2.30.2