From b650e4568bf2481e808bfb1f4862e31e18690049 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 30 Jul 2020 06:16:04 -0700 Subject: [PATCH] Mirror hidden text in SVG plotter We output a 0 opacity text in the SVG plotter to allow searching. When this text is changed to 100 opacity, it can show up on the user screen and so needs to be mirrored to match the stroke font output Fixes https://gitlab.com/kicad/code/kicad/issues/5001 --- common/plotters/SVG_plotter.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common/plotters/SVG_plotter.cpp b/common/plotters/SVG_plotter.cpp index cbde35a4c2..5124c67ead 100644 --- a/common/plotters/SVG_plotter.cpp +++ b/common/plotters/SVG_plotter.cpp @@ -841,10 +841,15 @@ void SVG_PLOTTER::Text( const wxPoint& aPos, } fprintf( outputFile, - "\n", - text_pos_dev.x, text_pos_dev.y, sz_dev.x, sz_dev.y, hjust, TO_UTF8( XmlEsc( aText ) ) );