Commit 1aa0a945 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri Committed by Code Review

Merge topic '14646-scalar-bar-borders' into master

20d5df76 BUG: Border visibility from underlying vtkScalarBar actor
parents 02666b57 20d5df76
......@@ -64,6 +64,17 @@ void vtkScalarBarRepresentation::SetScalarBarActor(vtkScalarBarActor* actor)
if (actor && oldActor)
{
actor->SetOrientation(oldActor->GetOrientation());
if(actor->GetOrientation())
{
this->ShowHorizontalBorder = 2;
this->ShowVerticalBorder = 0;
}
else
{
this->ShowHorizontalBorder = 0;
this->ShowVerticalBorder = 2;
}
this->UpdateShowBorder();
}
}
}
......
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