summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-bspline.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-04-06 17:48:31 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-04-06 17:48:31 +0000
commit0299d7b322047467df228666e31450df753e2cb9 (patch)
tree2840646443920a2e2c001838c80e60219a78ae2f /src/live_effects/lpe-bspline.cpp
parentAllow rotate copies whithout distorsion in kaleidoscope shapes (diff)
parentherpderp (diff)
downloadinkscape-0299d7b322047467df228666e31450df753e2cb9.tar.gz
inkscape-0299d7b322047467df228666e31450df753e2cb9.zip
update to trunk
(bzr r13708.1.23)
Diffstat (limited to 'src/live_effects/lpe-bspline.cpp')
-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();