summaryrefslogtreecommitdiffstats
path: root/src/spiral-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/spiral-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/spiral-context.cpp')
-rw-r--r--src/spiral-context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spiral-context.cpp b/src/spiral-context.cpp
index 090c8d276..9944e86b4 100644
--- a/src/spiral-context.cpp
+++ b/src/spiral-context.cpp
@@ -433,7 +433,7 @@ sp_spiral_drag(SPSpiralContext *sc, Geom::Point p, guint state)
sc->item = (SPItem *) desktop->currentLayer()->appendChildRepr(repr);
Inkscape::GC::release(repr);
- sc->item->transform = SP_ITEM(desktop->currentRoot())->getRelativeTransform(desktop->currentLayer());
+ sc->item->transform = sp_item_i2doc_affine(SP_ITEM(desktop->currentLayer())).inverse();
sc->item->updateRepr();
sp_canvas_force_full_redraw_after_interruptions(desktop->canvas, 5);
@@ -444,8 +444,8 @@ sp_spiral_drag(SPSpiralContext *sc, Geom::Point p, guint state)
Geom::Point pt2g = to_2geom(p);
m.freeSnapReturnByRef(Inkscape::SnapPreferences::SNAPPOINT_NODE, pt2g);
- Geom::Point const p0 = to_2geom(sp_desktop_dt2root_xy_point(desktop, sc->center));
- Geom::Point const p1 = to_2geom(sp_desktop_dt2root_xy_point(desktop, from_2geom(pt2g)));
+ Geom::Point const p0 = to_2geom(sp_desktop_dt2doc_xy_point(desktop, sc->center));
+ Geom::Point const p1 = to_2geom(sp_desktop_dt2doc_xy_point(desktop, from_2geom(pt2g)));
SPSpiral *spiral = SP_SPIRAL(sc->item);