Code

improve pencil-context logic
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 3 Jul 2008 21:31:35 +0000 (21:31 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 3 Jul 2008 21:31:35 +0000 (21:31 +0000)
src/pencil-context.cpp

index 2aac6ec0ab097ffe1ea1f91faa2b2bcf44acae02..918990e7eadc4a32503a6370e6783dbdd999a95c 100644 (file)
@@ -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();