Code

return boost::optional for second and penultimate points of SPCurve
[inkscape.git] / src / pencil-context.cpp
index 2c97beafe57afa3ac6b77feef9aa0ede70362660..4a7032e707a0d37862bd79abdebd42d1ee76a75e 100644 (file)
@@ -592,7 +592,7 @@ static void
 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);