From 62405695adf9634951826b6f3e3d1427182be23a Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 4 Apr 2007 23:38:01 +0000 Subject: [PATCH] Fix 1694325: when looping wasn't enabled, the region was being closed by looping back to the end of the last curved segment, ignoring any straight segments; what we really need to do is always just loop back to the start of the line. git-svn-id: http://svn.voria.com/code@425 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_geometry/region.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/synfig-core/trunk/src/modules/mod_geometry/region.cpp b/synfig-core/trunk/src/modules/mod_geometry/region.cpp index ee61182..75a9a1e 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/region.cpp +++ b/synfig-core/trunk/src/modules/mod_geometry/region.cpp @@ -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); -- 2.7.4