From 60f0db09aaa2dcfc0a6f2d01c1b45a7d8f87d995 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 7 Aug 2023 21:43:52 +0100 Subject: [PATCH] Make sure text gets rendered in correct colour. --- common/plotters/SVG_plotter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/plotters/SVG_plotter.cpp b/common/plotters/SVG_plotter.cpp index 47db7d04ef..596494ed31 100644 --- a/common/plotters/SVG_plotter.cpp +++ b/common/plotters/SVG_plotter.cpp @@ -357,9 +357,6 @@ void SVG_PLOTTER::SetDash( int aLineWidth, PLOT_DASH_TYPE aLineStyle ) m_graphics_changed = true; m_dashed = aLineStyle; } - - if( m_graphics_changed ) - setSVGPlotStyle( aLineWidth ); } @@ -799,6 +796,9 @@ void SVG_PLOTTER::Text( const VECTOR2I& aPos, SetColor( aColor ); SetCurrentLineWidth( aWidth ); + if( m_graphics_changed ) + setSVGPlotStyle( GetCurrentLineWidth() ); + VECTOR2I text_pos = aPos; const char* hjust = "start";