Skip to content
Snippets Groups Projects
Commit 1aa0a945 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri :speech_balloon: Committed by Code Review
Browse files

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

20d5df76 BUG: Border visibility from underlying vtkScalarBar actor
parents 02666b57 20d5df76
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment