From: Carlos Lopez Date: Thu, 28 Oct 2010 20:04:45 +0000 (+0200) Subject: Fix crash when right click on a empty canvas parameter of a Paste Canvas layer. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c7db90e8c78a1acfa048cf4078dee67939de7456;p=synfig.git Fix crash when right click on a empty canvas parameter of a Paste Canvas layer. --- 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())