Code

warn when ConvertToShape fails
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 7 Aug 2007 19:06:10 +0000 (19:06 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 7 Aug 2007 19:06:10 +0000 (19:06 +0000)
src/livarot/ShapeSweep.cpp

index cc5f3f93feb14275fe9f4db7c6bbf14f3983eba6..70f33af2c77c129b43317790a6575ab259d2e284 100644 (file)
@@ -171,7 +171,8 @@ Shape::ConvertToShape (Shape * a, FillRule directed, bool invert)
     }
     
     if ( directed != fill_justDont && directedEulerian(a) == false ) {
-       return shape_input_err;
+                       g_warning ("Shape error in ConvertToShape: directedEulerian(a) == false\n");
+                               return shape_input_err;
     }
   
     a->ResetSweep();