Commit 899fac34 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Fix ResetDisplay for charts.

Sometimes ResetDisplay would have no effect on charts. As soon as one interacted
with the chart and called ResetDisplay again, it would work. The problem was
that if the *AxisRange properties were already unset, then they would not be
pushed and hence the view would not reset the axis. This fixes that issue by
ensuring that the *AxisRange properties are pushed.
parent 4a1d587e
......@@ -220,7 +220,10 @@ void vtkSMContextViewProxy::ResetDisplay()
vtkSMPropertyHelper(this, "RightAxisRange", true).SetNumberOfElements(0);
vtkSMPropertyHelper(this, "TopAxisRange", true).SetNumberOfElements(0);
vtkSMPropertyHelper(this, "BottomAxisRange", true).SetNumberOfElements(0);
this->UpdateVTKObjects();
this->UpdateProperty("LeftAxisRange", 1);
this->UpdateProperty("RightAxisRange", 1);
this->UpdateProperty("TopAxisRange", 1);
this->UpdateProperty("BottomAxisRange", 1);
this->StillRender();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment