Fix crash when right click on a empty canvas parameter of a Paste Canvas layer.
authorCarlos Lopez <genetita@gmail.com>
Thu, 28 Oct 2010 20:04:45 +0000 (22:04 +0200)
committerCarlos Lopez <genetita@gmail.com>
Thu, 28 Oct 2010 20:04:45 +0000 (22:04 +0200)
synfig-studio/src/synfigapp/actions/layerparamunsetstatic.cpp

index 31009d6..e336a5c 100644 (file)
@@ -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())