From 809960e3b60548a200da6aedcf0a25b9ca4ae714 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Mon, 30 Jun 2008 19:42:01 +0000 Subject: [PATCH] pencil tool: don't use sp_curve_length macro but good function ;) --- 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 3e0e793f6..2aac6ec0a 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 ( ( SP_CURVE_LENGTH(pc->red_curve) != 2 ) + if ( ( pc->red_curve->get_segment_count() != 1 ) || ( pc->red_curve->first_point() == pc->red_curve->second_point() ) ) { pc->red_curve->reset(); -- 2.30.2