summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-01-08 00:57:47 +0000
committerJabiertxo Arraiza Cenoz <jtx@jtx.marker.es>2013-01-08 00:57:47 +0000
commiteeb9410c8748a03536119dd01615cda3ca215cb1 (patch)
tree6d959a44f76929ca1419e5d646a58a5bbb1f886f /src/live_effects
parentUpdate name (diff)
downloadinkscape-eeb9410c8748a03536119dd01615cda3ca215cb1.tar.gz
inkscape-eeb9410c8748a03536119dd01615cda3ca215cb1.zip
Fix BSplines whit 1 segment
(bzr r11950.1.16)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/lpe-bspline.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/live_effects/lpe-bspline.cpp b/src/live_effects/lpe-bspline.cpp
index a57cc9a88..a1f51de0b 100644
--- a/src/live_effects/lpe-bspline.cpp
+++ b/src/live_effects/lpe-bspline.cpp
@@ -43,6 +43,8 @@ LPEBSpline::doEffect(SPCurve * curve)
using Geom::X;
using Geom::Y;
+ if(curve->get_segment_count() < 2)
+ return;
// Make copy of old path as it is changed during processing
Geom::PathVector const original_pathv = curve->get_pathvector();
curve->reset();