Commit 18eab360 authored by Mathieu Westphal's avatar Mathieu Westphal Committed by Kitware Robot
Browse files

Merge topic 'fixup_context_view_button_release' into release


 Adding a sanity check in left button release in context view

Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: Ben Boeckel's avatarBen Boeckel <>
Merge-request: !5537
parents 47f2ef60 fd2f72ad
......@@ -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