From: dooglus Date: Sat, 24 Feb 2007 21:54:53 +0000 (+0000) Subject: Fix 1668051: Don't insert code for adding end or begin tip when there are less than... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=82a468e2b0ba5b59f2c19ff42f81422d207f5225;p=synfig.git Fix 1668051: Don't insert code for adding end or begin tip when there are less than 2 vertices in the outline. git-svn-id: http://svn.voria.com/code@246 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 48e1fbc..6f9026c 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/outline.cpp +++ b/synfig-core/trunk/src/modules/mod_geometry/outline.cpp @@ -308,7 +308,7 @@ Outline::sync() } // Insert code for adding end tip - if(round_tip[1] && !loop) + if(round_tip[1] && !loop && side_a.size()) { // remove the last point side_a.pop_back(); @@ -335,7 +335,7 @@ Outline::sync() side_a.push_back(side_b.back()); // Insert code for adding begin tip - if(round_tip[0] && !loop) + if(round_tip[0] && !loop && side_a.size()) { // remove the last point side_a.pop_back();