Ruler tool: reset text mirror/bold/italic before painting
This is required as the OpenGL GAL doesn't support mirrored text, and if the state is not cleared after painting other mirrored text, this is what is attempted. Fixes: lp:1677210 * https://bugs.launchpad.net/kicad/+bug/1677210
This commit is contained in:
parent
23590d8d3f
commit
fc7dad600f
|
@ -238,6 +238,9 @@ void RULER_ITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
|
||||||
gal.SetIsStroke( true );
|
gal.SetIsStroke( true );
|
||||||
gal.SetIsFill( false );
|
gal.SetIsFill( false );
|
||||||
gal.SetStrokeColor( PreviewOverlayDefaultColor() );
|
gal.SetStrokeColor( PreviewOverlayDefaultColor() );
|
||||||
|
gal.SetFontBold( false );
|
||||||
|
gal.SetFontItalic( false );
|
||||||
|
gal.SetTextMirrored( false );
|
||||||
|
|
||||||
// draw the main line from the origin to cursor
|
// draw the main line from the origin to cursor
|
||||||
gal.DrawLine( origin, end );
|
gal.DrawLine( origin, end );
|
||||||
|
|
Loading…
Reference in New Issue