Commit 6f7725cd authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Use adujsted height and width whenever frame or background are on.

Change-Id: Id218c6eac42d7c98e0a01df55194998a2c312385
parent 3e30588b
......@@ -503,7 +503,11 @@ int vtkScalarBarActor::RenderOpaqueGeometry(vtkViewport *viewport)
double barY = 0.;
if ( this->Orientation == VTK_ORIENT_VERTICAL )
{
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);
barY = static_cast<int>(size[1] * 0.05 + labelSize[1] / 2);
......
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