From 53933f5fea9d07d1ba6304b88439fba257ee8c34 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 2 Feb 2011 22:24:36 +0100 Subject: update to latest 2geom ! (bzr r10025) --- src/sp-line.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp-line.cpp') diff --git a/src/sp-line.cpp b/src/sp-line.cpp index b8c5a19b7..100eefe87 100644 --- a/src/sp-line.cpp +++ b/src/sp-line.cpp @@ -180,7 +180,7 @@ void SPLine::convertToGuides(SPItem *item) SPLine *line = SP_LINE(item); Geom::Point points[2]; - Geom::Matrix const i2d(item->i2d_affine()); + Geom::Affine const i2d(item->i2d_affine()); points[0] = Geom::Point(line->x1.computed, line->y1.computed)*i2d; points[1] = Geom::Point(line->x2.computed, line->y2.computed)*i2d; @@ -188,7 +188,7 @@ void SPLine::convertToGuides(SPItem *item) SPGuide::createSPGuide(inkscape_active_desktop(), points[0], points[1]); } -Geom::Matrix SPLine::setTransform(SPItem *item, Geom::Matrix const &xform) +Geom::Affine SPLine::setTransform(SPItem *item, Geom::Affine const &xform) { SPLine *line = SP_LINE(item); Geom::Point points[2]; -- cgit v1.2.3 From d6978fcea4a2ccd2d9cccefabc6558a74f332a6d Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 2 Apr 2011 00:59:01 +0200 Subject: add curve before LPE to SPShape. this is useful for helperpath display. It was inspired from fixing bug 407008 Fixed bugs: - https://launchpad.net/bugs/407008 (bzr r10142) --- src/sp-line.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sp-line.cpp') diff --git a/src/sp-line.cpp b/src/sp-line.cpp index 100eefe87..72fe2cfa2 100644 --- a/src/sp-line.cpp +++ b/src/sp-line.cpp @@ -221,6 +221,9 @@ void SPLine::setShape(SPShape *shape) c->lineto(line->x2.computed, line->y2.computed); shape->setCurveInsync(c, TRUE); // *_insync does not call update, avoiding infinite recursion when set_shape is called by update + shape->setCurveBeforeLPE(c); + + // LPE's cannot be applied to lines. (the result can (generally) not be represented as SPLine) c->unref(); } -- cgit v1.2.3