X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2Fstable%2Fsrc%2Fmodules%2Fmod_geometry%2Foutline.cpp;h=356104a3e357954ff46fcde718b154d30f367455;hb=1b597586609b1c4df37d5ce9726f2ab27bfd64ea;hp=597fe82b6184e43dddba45f2d291882ea608ae1f;hpb=d3408370fc3297609b3aa8d4ff7edf1f238df251;p=synfig.git diff --git a/synfig-core/tags/stable/src/modules/mod_geometry/outline.cpp b/synfig-core/tags/stable/src/modules/mod_geometry/outline.cpp index 597fe82..356104a 100644 --- a/synfig-core/tags/stable/src/modules/mod_geometry/outline.cpp +++ b/synfig-core/tags/stable/src/modules/mod_geometry/outline.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -171,6 +172,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 @@ -721,7 +729,7 @@ Outline::set_param(const String & param, const ValueBase &value) return true; } - if( param=="width_list" && value.same_as(width_list)) + if( param=="width_list" && value.same_type_as(width_list)) { width_list=value; //sync();