From 123ea51b7b43b0b5d9b645fcc6e43cc0579c9e08 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 3 Jul 2008 21:31:35 +0000 Subject: [PATCH] improve pencil-context logic --- src/pencil-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index 2aac6ec0a..918990e7e 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -570,7 +570,7 @@ spdc_set_endpoint(SPPencilContext *const pc, NR::Point const p) static void spdc_finish_endpoint(SPPencilContext *const pc) { - if ( ( pc->red_curve->get_segment_count() != 1 ) + if ( ( pc->red_curve->is_empty() ) || ( pc->red_curve->first_point() == pc->red_curve->second_point() ) ) { pc->red_curve->reset(); -- 2.30.2