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:
John Beard 2017-03-29 19:35:03 +08:00 committed by Maciej Suminski
parent 23590d8d3f
commit fc7dad600f
1 changed files with 3 additions and 0 deletions

View File

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