summaryrefslogtreecommitdiffstats
path: root/src/sp-line.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-04-01 22:59:01 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-04-01 22:59:01 +0000
commitd6978fcea4a2ccd2d9cccefabc6558a74f332a6d (patch)
tree98ea2cff482d6b2196e4bffa4fab3a7a4d5aead0 /src/sp-line.cpp
parentGerman translation update. (diff)
downloadinkscape-d6978fcea4a2ccd2d9cccefabc6558a74f332a6d.tar.gz
inkscape-d6978fcea4a2ccd2d9cccefabc6558a74f332a6d.zip
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)
Diffstat (limited to 'src/sp-line.cpp')
-rw-r--r--src/sp-line.cpp3
1 files changed, 3 insertions, 0 deletions
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();
}