Fix 1694325: when looping wasn't enabled, the region was being closed by looping...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 4 Apr 2007 23:38:01 +0000 (23:38 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 4 Apr 2007 23:38:01 +0000 (23:38 +0000)
git-svn-id: http://svn.voria.com/code@425 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index ee61182..75a9a1e 100644 (file)
@@ -157,11 +157,9 @@ Region::sync()
                }
        }
 
-       //add a single point onto the end so it actually fits the shape, so we can be awesome...
+       //add the starting point onto the end so it actually fits the shape, so we can be extra awesome...
        if(!looped)
-       {
-               vector_list.push_back(curve.p2());
-       }
+               vector_list.push_back(segment_list[0].p1);
 
        clear();
        add_polygon(vector_list);