summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2015-07-19 13:22:31 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2015-07-19 13:22:31 +0000
commit1997b7aeecff6a01b3e319cd2a42a6029bc56ae7 (patch)
tree25d7a6673bca4c0f8e6187dd24de3f1381fb2637 /src/display
parentsetStitching(), gajiosdfksdsfd (diff)
downloadinkscape-1997b7aeecff6a01b3e319cd2a42a6029bc56ae7.tar.gz
inkscape-1997b7aeecff6a01b3e319cd2a42a6029bc56ae7.zip
Enable stitching in Spiro and SPCurve to prevent some crashes
(bzr r14250)
Diffstat (limited to 'src/display')
-rw-r--r--src/display/curve.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index 386c63166..3024d1276 100644
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
@@ -203,8 +203,9 @@ SPCurve::moveto(double x, double y)
void
SPCurve::moveto(Geom::Point const &p)
{
- _pathv.push_back( Geom::Path() ); // for some reason Geom::Path(p) does not work...
- _pathv.back().start(p);
+ Geom::Path path(p);
+ path.setStitching(true);
+ _pathv.push_back(path);
}
/**