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

Author: Carlos Lopez <[email protected]>
Date:   Sun Jan 30 14:01:42 2011 +0100

Check whether the composite to be linked is Width Point type.

---

 .../src/synfigapp/actions/valuedesclink.cpp        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/synfig-studio/src/synfigapp/actions/valuedesclink.cpp 
b/synfig-studio/src/synfigapp/actions/valuedesclink.cpp
index 386c67f..b0024aa 100644
--- a/synfig-studio/src/synfigapp/actions/valuedesclink.cpp
+++ b/synfig-studio/src/synfigapp/actions/valuedesclink.cpp
@@ -113,11 +113,11 @@ Action::ValueDescLink::set_param(const synfig::String& 
name, const Action::Param
        if(name=="value_desc" && param.get_type()==Param::TYPE_VALUEDESC)
        {
                ValueDesc value_desc(param.get_value_desc());
-
+               // If we are handling a Composite WidthPoint then use its 
position as param
                if(value_desc.is_value_node() && 
value_desc.parent_is_linkable_value_node())
                {
                        synfig::ValueNode_Composite::Handle 
wpcompo(synfig::ValueNode_Composite::Handle::cast_dynamic(value_desc.get_value_node()));
-                       if(wpcompo)
+                       if(wpcompo && wpcompo->get_type() == 
ValueBase::TYPE_WIDTHPOINT)
                        {
                                synfigapp::Action::Param 
param(synfigapp::ValueDesc(wpcompo, 
wpcompo->get_link_index_from_name("position")));
                                return set_param("value_desc", param);


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to