Fix 1668051: Don't insert code for adding end or begin tip when there are less than...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 24 Feb 2007 21:54:53 +0000 (21:54 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 24 Feb 2007 21:54:53 +0000 (21:54 +0000)
git-svn-id: http://svn.voria.com/code@246 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 48e1fbc..6f9026c 100644 (file)
@@ -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();