From: dooglus Date: Fri, 31 Aug 2007 20:24:52 +0000 (+0000) Subject: Fix 1785598: studio crash when marking all Bline vertices as Off. Don't attempt... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=516e9c25ed8d8f840d3da146497181bd0518bf11;p=synfig.git Fix 1785598: studio crash when marking all Bline vertices as Off. Don't attempt to draw an outline that contains no verticies. git-svn-id: http://svn.voria.com/code@569 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_geometry/outline.cpp b/synfig-core/trunk/src/modules/mod_geometry/outline.cpp index 597fe82..69d635f 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/outline.cpp +++ b/synfig-core/trunk/src/modules/mod_geometry/outline.cpp @@ -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