From bce8fb31ab64f6f0cc5eea0c0fc0b7cdc1258571 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 (cherry picked from commit b650e4568bf2481e808bfb1f4862e31e18690049) --- 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 87ee5c677a..f3b0656e1b 100644 --- a/common/plotters/SVG_plotter.cpp +++ b/common/plotters/SVG_plotter.cpp @@ -796,10 +796,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 ) ) );