summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-04-03 19:40:44 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-04-03 19:40:44 +0000
commitb7c42a14e19393318be0031b6c75443dd34f9b43 (patch)
tree27df3d41dfefbda713e078375e6599e12df53b22 /src
parentinicialice a header variable (diff)
downloadinkscape-b7c42a14e19393318be0031b6c75443dd34f9b43.tar.gz
inkscape-b7c42a14e19393318be0031b6c75443dd34f9b43.zip
Add helper path to guide BSpline if path outline is hidden
(bzr r14042)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-bspline.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/live_effects/lpe-bspline.cpp b/src/live_effects/lpe-bspline.cpp
index dba501f42..5d5a6e616 100644
--- a/src/live_effects/lpe-bspline.cpp
+++ b/src/live_effects/lpe-bspline.cpp
@@ -74,13 +74,15 @@ void LPEBSpline::doEffect(SPCurve *curve)
}
// Make copy of old path as it is changed during processing
Geom::PathVector const original_pathv = curve->get_pathvector();
+
curve->reset();
for (Geom::PathVector::const_iterator path_it = original_pathv.begin();
path_it != original_pathv.end(); ++path_it) {
- if (path_it->empty())
+ if (path_it->empty()){
continue;
-
+ }
+ hp.push_back(*path_it);
Geom::Path::const_iterator curve_it1 = path_it->begin();
Geom::Path::const_iterator curve_it2 = ++(path_it->begin());
Geom::Path::const_iterator curve_endit = path_it->end_default();