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

ENH : suppress Initialize method call in histogram Handler Action

parent 0eb68b5d
No related branches found
No related tags found
No related merge requests found
......@@ -117,8 +117,8 @@ virtual bool HandleWidgetEvent(std::string widgetId, int event)
case FL_RELEASE:
{
if(m_ModifyLeft || m_ModifyRight)
{
m_Model->Update();
{
m_Model->Update();
}
m_ModifyLeft = false;
......@@ -140,7 +140,6 @@ virtual bool HandleWidgetEvent(std::string widgetId, int event)
param.SetElement(2*m_Channel, m_LeftAsymptote->GetAbcisse() + tx);
param.SetElement(2*m_Channel+1, m_RightAsymptote->GetAbcisse());
m_RenderingFunction->SetParameters(param);
m_RenderingFunction->Initialize();
}
if(m_ModifyRight)
......@@ -154,7 +153,6 @@ virtual bool HandleWidgetEvent(std::string widgetId, int event)
param.SetElement(2*m_Channel, m_LeftAsymptote->GetAbcisse());
param.SetElement(2*m_Channel+1, m_RightAsymptote->GetAbcisse()+tx);
m_RenderingFunction->SetParameters(param);
m_RenderingFunction->Initialize();
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment