//! 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())