vtkScalarBarActor layout is incorrect when title is null or empty
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In VTK 6.1.0, if the title of a vtkScalarBarActor is not set before first render then the scalar bar length will sometimes be wrong.
In vtkScalarBarActor::ComputeScalarBarLength(), the computation of this->P->ScalarBarBox.Size[1] references this->P->TitleBox.Size[1]. If Title is null or zero length (per vtkScalarBarActor::LayoutTitle()), then this->P->TitleBox.Size[1] does not get initialized and therefore can have arbitrary value. As a result, the size of the scalar bar is also arbitrary.
The current reasonable workaround is to set the title to " ".
Similar behavior may occur due to uninitialized layout sizes for other scalar bar properties, although this has not been verified.