Commit e24213c3 authored by Dave DeMarle's avatar Dave DeMarle Committed by Code Review

Merge topic '0014200-incorrect-vtkAxisActor2D-scaling' into master

2d3ecda0 bug#0014200 fix incorrect text scaling
parents 0f33c6a7 2d3ecda0
......@@ -388,7 +388,7 @@ void vtkAxisActor2D::BuildAxis(vtkViewport *viewport)
double *xp1, *xp2, len=0.0;
if ( this->SizeFontRelativeToAxis )
{
xp1 = this->PositionCoordinate->GetComputedDoubleDisplayValue(viewport);
xp1 = this->PositionCoordinate->GetComputedDoubleViewportValue(viewport);
xp2 = this->Position2Coordinate->GetComputedDoubleViewportValue(viewport);
len = sqrt((xp2[0]-xp1[0])*(xp2[0]-xp1[0]) + (xp2[1]-xp1[1])*(xp2[1]-xp1[1]));
}
......
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