diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-01-08 00:57:47 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Cenoz <jtx@jtx.marker.es> | 2013-01-08 00:57:47 +0000 |
| commit | eeb9410c8748a03536119dd01615cda3ca215cb1 (patch) | |
| tree | 6d959a44f76929ca1419e5d646a58a5bbb1f886f /src/live_effects | |
| parent | Update name (diff) | |
| download | inkscape-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.cpp | 2 |
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(); |
