From 2f74d1466e63e026a8d12b012db7480b09bbcd23 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 6 Jan 2024 10:01:22 +0100 Subject: [PATCH] SVG_PLOTTER: Update brush color also when the alpha value has changed. Previously, the alpha value change was not tested, so the SVG style was not always updated. Fixes #16530 https://gitlab.com/kicad/code/kicad/-/issues/16530 --- common/plotters/SVG_plotter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/plotters/SVG_plotter.cpp b/common/plotters/SVG_plotter.cpp index 4cd5fb7947..b90c081757 100644 --- a/common/plotters/SVG_plotter.cpp +++ b/common/plotters/SVG_plotter.cpp @@ -357,7 +357,7 @@ void SVG_PLOTTER::emitSetRGBColor( double r, double g, double b, double a ) int blue = (int) ( 255.0 * b ); long rgb_color = (red << 16) | (green << 8) | blue; - if( m_pen_rgb_color != rgb_color ) + if( m_pen_rgb_color != rgb_color || m_brush_alpha != a ) { m_graphics_changed = true; m_pen_rgb_color = rgb_color;