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

fd2f72ad

 Adding a sanity check in left button release in context view

Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel's avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !5537
parents 47f2ef60 fd2f72ad
...@@ -211,7 +211,7 @@ void vtkSMContextViewProxy::OnInteractionEvent() ...@@ -211,7 +211,7 @@ void vtkSMContextViewProxy::OnInteractionEvent()
void vtkSMContextViewProxy::OnLeftButtonReleaseEvent() void vtkSMContextViewProxy::OnLeftButtonReleaseEvent()
{ {
vtkChart* chart = vtkChart::SafeDownCast(this->GetContextItem()); vtkChart* chart = vtkChart::SafeDownCast(this->GetContextItem());
if (chart) if (chart && chart->GetLegend())
{ {
int pos[2]; int pos[2];
pos[0] = static_cast<int>(chart->GetLegend()->GetPointVector().GetX()); 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