Fix some issues with ruler drawing.

This commit is contained in:
Jeff Young 2022-02-08 15:53:55 +00:00
parent 06e00c7957
commit f2440978ec
1 changed files with 1 additions and 4 deletions

View File

@ -168,10 +168,7 @@ void drawTicksAlongLine( KIGFX::VIEW* aView, const VECTOR2D& aOrigin, const VECT
VECTOR2I labelOffset = tickLine.Resize( majorTickLen );
if( aDrawingDropShadows )
{
labelOffset = { labelDims.ShadowWidth, labelDims.ShadowWidth };
labelDims.StrokeWidth += 2 * labelDims.ShadowWidth;
}
if( aView->IsMirroredX() )
labelOffset = -labelOffset;
@ -249,7 +246,7 @@ void drawBacksideTicks( KIGFX::VIEW* aView, const VECTOR2D& aOrigin, const VECTO
VECTOR2D backTickVec = aLine;
RotatePoint( backTickVec, -ANGLE_90 );
backTickVec.Resize( aTickLen );
backTickVec = backTickVec.Resize( aTickLen );
BOX2D viewportD = aView->GetViewport();
BOX2I viewport( VECTOR2I( viewportD.GetPosition() ), VECTOR2I( viewportD.GetSize() ) );