From 8e49988bb83bac954fad4e8648acf2e3d65f96ff Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Mon, 8 Dec 2008 21:54:37 +0000 Subject: Make all tools consider full parent transform (up to document, not just up to root) See http://wiki.inkscape.org/wiki/index.php/ViewBoxToDo (bzr r6974) --- src/connector-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connector-context.cpp') diff --git a/src/connector-context.cpp b/src/connector-context.cpp index 8260456d4..372918b80 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -909,7 +909,7 @@ spcc_flush_white(SPConnectorContext *cc, SPCurve *gc) } /* Now we have to go back to item coordinates at last */ - c->transform(sp_desktop_dt2root_affine(SP_EVENT_CONTEXT_DESKTOP(cc))); + c->transform(sp_desktop_dt2doc_affine(SP_EVENT_CONTEXT_DESKTOP(cc))); SPDesktop *desktop = SP_EVENT_CONTEXT_DESKTOP(cc); SPDocument *doc = sp_desktop_document(desktop); @@ -931,7 +931,7 @@ spcc_flush_white(SPConnectorContext *cc, SPCurve *gc) cc->newconn = SP_ITEM(desktop->currentLayer()->appendChildRepr(repr)); cc->selection->set(repr); Inkscape::GC::release(repr); - cc->newconn->transform = i2i_affine(desktop->currentRoot(), desktop->currentLayer()); + cc->newconn->transform = sp_item_i2doc_affine(SP_ITEM(desktop->currentLayer())).inverse(); cc->newconn->updateRepr(); bool connection = false; -- cgit v1.2.3