Fix 1785598: studio crash when marking all Bline vertices as Off. Don't attempt...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 31 Aug 2007 20:24:52 +0000 (20:24 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 31 Aug 2007 20:24:52 +0000 (20:24 +0000)
git-svn-id: http://svn.voria.com/code@569 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/mod_geometry/outline.cpp

index 597fe82..69d635f 100644 (file)
@@ -171,6 +171,13 @@ void
 Outline::sync()
 {
        clear();
+
+       if (!bline.get_list().size())
+       {
+               synfig::warning(string("Outline::sync():")+_("No verticies in outline " + string("\"") + get_description() + string("\"")));
+               return;
+       }
+               
        try {
 #if 1