From 556120554ee9119b674af90cb59257cb12808c85 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Wed, 16 Aug 2023 10:42:59 +0300 Subject: [PATCH] SVG plotter: fix hidden text orientation when plot is mirrored. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15422 --- common/plotters/SVG_plotter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/plotters/SVG_plotter.cpp b/common/plotters/SVG_plotter.cpp index 596494ed31..15d54e6922 100644 --- a/common/plotters/SVG_plotter.cpp +++ b/common/plotters/SVG_plotter.cpp @@ -828,16 +828,16 @@ void SVG_PLOTTER::Text( const VECTOR2I& aPos, if( !aOrient.IsZero() ) { - fprintf( m_outputFile, - "\n", - - aOrient.AsDegrees(), m_precision, anchor_pos_dev.x, m_precision, anchor_pos_dev.y ); + fprintf( m_outputFile, "\n", + m_plotMirror ? aOrient.AsDegrees() : -aOrient.AsDegrees(), m_precision, + anchor_pos_dev.x, m_precision, anchor_pos_dev.y ); } fprintf( m_outputFile, "