Module: synfig/synfig Branch: master Commit: c7db90e8c78a1acfa048cf4078dee67939de7456 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=c7db90e8c78a1acfa048cf4078dee67939de7456
Author: Carlos Lopez <[email protected]> Date: Thu Oct 28 22:04:45 2010 +0200 Fix crash when right click on a empty canvas parameter of a Paste Canvas layer. --- .../synfigapp/actions/layerparamunsetstatic.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-studio/src/synfigapp/actions/layerparamunsetstatic.cpp b/synfig-studio/src/synfigapp/actions/layerparamunsetstatic.cpp index 31009d6..e336a5c 100644 --- a/synfig-studio/src/synfigapp/actions/layerparamunsetstatic.cpp +++ b/synfig-studio/src/synfigapp/actions/layerparamunsetstatic.cpp @@ -103,8 +103,8 @@ Action::LayerParamUnSetStatic::is_candidate(const ParamList &x) //! Retrieves the current parameter parameter = _layer->get_param(_param_name); //! Check that the parameter is not a inline canvas - if(parameter.get_type()==ValueBase::TYPE_CANVAS) - if(parameter.get(Canvas::Handle())->is_inline() && parameter.get(Canvas::Handle())) + if(parameter.get_type()==ValueBase::TYPE_CANVAS && parameter.get(Canvas::Handle())) + if(parameter.get(Canvas::Handle())->is_inline()) return false; //! Check if it is not static if(!parameter.get_static()) ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Synfig-devl mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synfig-devl
