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
This commit is contained in:
jean-pierre charras 2024-01-06 10:01:22 +01:00
parent 85c324b5d7
commit 2f74d1466e
1 changed files with 1 additions and 1 deletions

View File

@ -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;