From eeb9410c8748a03536119dd01615cda3ca215cb1 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Tue, 8 Jan 2013 01:57:47 +0100 Subject: Fix BSplines whit 1 segment (bzr r11950.1.16) --- src/pen-context.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/pen-context.cpp') 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); -- cgit v1.2.3