From 516e9c25ed8d8f840d3da146497181bd0518bf11 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 31 Aug 2007 20:24:52 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/modules/mod_geometry/outline.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.7.4