diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 2c97beafe57afa3ac6b77feef9aa0ede70362660..4a7032e707a0d37862bd79abdebd42d1ee76a75e 100644 (file)
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
spdc_finish_endpoint(SPPencilContext *const pc)
{
if ( ( pc->red_curve->is_empty() )
- || ( pc->red_curve->first_point() == pc->red_curve->second_point() ) )
+ || ( pc->red_curve->first_point() == *(pc->red_curve->second_point()) ) )
{
pc->red_curve->reset();
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), NULL);