Commit 043f30f7 authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Do not forget to adjust H/W when necessary in horizontal orientation

Change-Id: If37309b4112fd5990ce7efbde72097af1d25028c
parent 9b7d6bc8
......@@ -529,7 +529,11 @@ int vtkScalarBarActor::RenderOpaqueGeometry(vtkViewport *viewport)
}
else
{
if ( this->EnhancedMode )
// Adjust height and width only in enhanced more or if at least
// one amongst the frame and the background was requested
if ( this->DrawBackground ||
this->DrawFrame ||
this->EnhancedMode )
{
barX = static_cast<int>(size[0] * 0.05) + labelSize[0] / 2;
barY = static_cast<int>(size[1] * 0.05);
......
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