summaryrefslogtreecommitdiffstats
path: root/src/pencil-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pencil-context.cpp')
-rw-r--r--src/pencil-context.cpp2
1 files changed, 1 insertions, 1 deletions
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();