summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
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/pen-context.cpp
parentUpdate name (diff)
downloadinkscape-eeb9410c8748a03536119dd01615cda3ca215cb1.tar.gz
inkscape-eeb9410c8748a03536119dd01615cda3ca215cb1.zip
Fix BSplines whit 1 segment
(bzr r11950.1.16)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 936000c9c..bc57fc603 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -1909,7 +1909,8 @@ static void bspline_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();
@@ -2223,11 +2224,6 @@ static void spdc_pen_finish(SPPenContext *const pc, gboolean const closed)
return;
}
- //BSpline
- if(pc->bspline && pc->green_curve->get_segment_count() < 2 && !pc->sa )
- return;
- //BSpline End
-
pc->num_clicks = 0;
pen_disable_events(pc);