Skip to content
Snippets Groups Projects
Commit ea0cacd4 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: delete protection in case of pointer modification

parent 4d5a5ddc
No related branches found
No related tags found
No related merge requests found
......@@ -118,13 +118,10 @@ public:
/** Set/Get the rendering function */
void SetRenderingFunction(RenderingFunctionType * function)
{
if(m_RenderingFunction != function)
{
m_RenderingFunction = function;
m_QuicklookRenderingFilter->SetRenderingFunction(m_RenderingFunction);
m_ExtractRenderingFilter->SetRenderingFunction(m_RenderingFunction);
m_ScaledExtractRenderingFilter->SetRenderingFunction(m_RenderingFunction);
}
m_RenderingFunction = function;
m_QuicklookRenderingFilter->SetRenderingFunction(m_RenderingFunction);
m_ExtractRenderingFilter->SetRenderingFunction(m_RenderingFunction);
m_ScaledExtractRenderingFilter->SetRenderingFunction(m_RenderingFunction);
}
itkGetObjectMacro(RenderingFunction,RenderingFunctionType);
......
......@@ -153,11 +153,8 @@ public:
*/
void SetRenderingFunction(RenderingFunctionType * function)
{
if(function != this->GetFunctor().GetFunction())
{
this->GetFunctor().SetFunction(function);
this->Modified();
}
this->GetFunctor().SetFunction(function);
this->Modified();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment