Module: synfig/synfig
Branch: genete_width_outline
Commit: 89ec2604ea2a36d878df73f231d63deb9043229e
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=89ec2604ea2a36d878df73f231d63deb9043229e

Author: Carlos Lopez <[email protected]>
Date:   Fri Jan 14 11:38:56 2011 +0100

Insert only two width points with custom values at constructor.

---

 .../src/modules/mod_geometry/advanced_outline.cpp  |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp 
b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
index ec4545d..4a72b39 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -100,7 +100,10 @@ Advanced_Outline::Advanced_Outline()
        vector<WidthPoint> wpoint_list;
        wpoint_list.push_back(WidthPoint());
        wpoint_list.push_back(WidthPoint());
-       wpoint_list.push_back(WidthPoint());
+       wpoint_list[0].set_position(0.0);
+       wpoint_list[1].set_position(1.0);
+       wpoint_list[0].set_width(0.0);
+       wpoint_list[1].set_width(1.0);
        wplist=wpoint_list;
 
        needs_sync=true;


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to