diff --git a/common/preview_items/ruler_item.cpp b/common/preview_items/ruler_item.cpp index e0827bfd3d..9bebb2df2f 100644 --- a/common/preview_items/ruler_item.cpp +++ b/common/preview_items/ruler_item.cpp @@ -165,6 +165,12 @@ void drawTicksAlongLine( KIGFX::VIEW* aView, const VECTOR2D& aOrigin, const VECT double majorTickLen = aMinorTickLen * ( majorTickLengthFactor + 1 ); VECTOR2D labelOffset = tickLine.Resize( majorTickLen - textOffset ); + if( aView->IsMirroredX() ) + { + textOffset = -textOffset; + labelOffset = -labelOffset; + } + if( aLine.Angle() > 0 ) { gal->SetHorizontalJustify( GR_TEXT_HJUSTIFY_LEFT );