Make sure text gets rendered in correct colour.
This commit is contained in:
parent
c30bdf9ba8
commit
60f0db09aa
|
@ -357,9 +357,6 @@ void SVG_PLOTTER::SetDash( int aLineWidth, PLOT_DASH_TYPE aLineStyle )
|
||||||
m_graphics_changed = true;
|
m_graphics_changed = true;
|
||||||
m_dashed = aLineStyle;
|
m_dashed = aLineStyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_graphics_changed )
|
|
||||||
setSVGPlotStyle( aLineWidth );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -799,6 +796,9 @@ void SVG_PLOTTER::Text( const VECTOR2I& aPos,
|
||||||
SetColor( aColor );
|
SetColor( aColor );
|
||||||
SetCurrentLineWidth( aWidth );
|
SetCurrentLineWidth( aWidth );
|
||||||
|
|
||||||
|
if( m_graphics_changed )
|
||||||
|
setSVGPlotStyle( GetCurrentLineWidth() );
|
||||||
|
|
||||||
VECTOR2I text_pos = aPos;
|
VECTOR2I text_pos = aPos;
|
||||||
const char* hjust = "start";
|
const char* hjust = "start";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue