summaryrefslogtreecommitdiffstats
path: root/src/sp-line.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-07-25 01:06:47 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2011-07-25 01:06:47 +0000
commit4f3cc7cbb73a72e1ab10a587a3b81f8c8737fec3 (patch)
tree75853d8eec5e85fb93a2a798b57f072e3c9eeb99 /src/sp-line.cpp
parentReplace direct use of Cairo contexts and surfaces in the rendering tree (diff)
parentRevert workarounds from 10501 - no longer necessary (diff)
downloadinkscape-4f3cc7cbb73a72e1ab10a587a3b81f8c8737fec3.tar.gz
inkscape-4f3cc7cbb73a72e1ab10a587a3b81f8c8737fec3.zip
Merge from trunk
(bzr r10347.1.18)
Diffstat (limited to 'src/sp-line.cpp')
-rw-r--r--src/sp-line.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-line.cpp b/src/sp-line.cpp
index b21122566..d3faf2299 100644
--- a/src/sp-line.cpp
+++ b/src/sp-line.cpp
@@ -179,12 +179,12 @@ void SPLine::convertToGuides(SPItem *item)
SPLine *line = SP_LINE(item);
Geom::Point points[2];
- Geom::Affine const i2d(item->i2d_affine());
+ Geom::Affine const i2dt(item->i2dt_affine());
- points[0] = Geom::Point(line->x1.computed, line->y1.computed)*i2d;
- points[1] = Geom::Point(line->x2.computed, line->y2.computed)*i2d;
+ points[0] = Geom::Point(line->x1.computed, line->y1.computed)*i2dt;
+ points[1] = Geom::Point(line->x2.computed, line->y2.computed)*i2dt;
- SPGuide::createSPGuide(inkscape_active_desktop(), points[0], points[1]);
+ SPGuide::createSPGuide(item->document, points[0], points[1]);
}
Geom::Affine SPLine::setTransform(SPItem *item, Geom::Affine const &xform)