Commit fd2f72ad authored by Mathieu Westphal's avatar Mathieu Westphal
Browse files

Adding a sanity check in left button release in context view

parent 47f2ef60
......@@ -211,7 +211,7 @@ void vtkSMContextViewProxy::OnInteractionEvent()
void vtkSMContextViewProxy::OnLeftButtonReleaseEvent()
{
vtkChart* chart = vtkChart::SafeDownCast(this->GetContextItem());
if (chart)
if (chart && chart->GetLegend())
{
int pos[2];
pos[0] = static_cast<int>(chart->GetLegend()->GetPointVector().GetX());
......
Supports Markdown
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