Author: Carlos Lopez <[email protected]>
Date: Sun Aug 14 09:20:36 2011 +0200
Fix trimming dash offset layer parameter to be allow negative offsets
---
.../src/modules/mod_geometry/advanced_outline.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
index dc41268..1d3640e 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -297,9 +297,8 @@ Advanced_Outline::sync()
Real blinelength(bline_length(bline, blineloop, NULL));
if(blinelength > EPSILON)
{
- // Put dash_offset in the [0,blinelength]
interval
- dash_offset=fabs(dash_offset);
- if (dash_offset > blinelength)
dash_offset=fmod(blinelength, dash_offset);
+ // Put dash_offset in the
[-blinelength,blinelength] interval
+ if (fabs(dash_offset) > blinelength)
dash_offset=fmod(blinelength, dash_offset);
Real dpos=dash_offset;
Real dashes_length(0.0);
vector<DashItem>::iterator
diter(dilist.begin());
------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl