summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
authorThomas Holder <speleo3@users.sourceforge.net>2008-12-08 21:54:37 +0000
committerspeleo3 <speleo3@users.sourceforge.net>2008-12-08 21:54:37 +0000
commit8e49988bb83bac954fad4e8648acf2e3d65f96ff (patch)
tree33d0a04a1de69f23c4228fedaf0734709be8550e /src/rect-context.cpp
parent"make check" now compiles and runs on Linux. (diff)
downloadinkscape-8e49988bb83bac954fad4e8648acf2e3d65f96ff.tar.gz
inkscape-8e49988bb83bac954fad4e8648acf2e3d65f96ff.zip
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)
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index 5d2a353d9..1d8e8c12b 100644
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
@@ -479,7 +479,7 @@ static void sp_rect_drag(SPRectContext &rc, Geom::Point const pt, guint state)
rc.item = (SPItem *) desktop->currentLayer()->appendChildRepr(repr);
Inkscape::GC::release(repr);
- rc.item->transform = SP_ITEM(desktop->currentRoot())->getRelativeTransform(desktop->currentLayer());
+ rc.item->transform = sp_item_i2doc_affine(SP_ITEM(desktop->currentLayer())).inverse();
rc.item->updateRepr();
sp_canvas_force_full_redraw_after_interruptions(desktop->canvas, 5);