Set line width for SELECTION_AREA

Fixes: lp:1743242
* https://bugs.launchpad.net/kicad/+bug/1743242
This commit is contained in:
Maciej Suminski 2018-01-16 09:27:46 +01:00
parent 74d47d8173
commit 495c4125f9
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ const BOX2I SELECTION_AREA::ViewBBox() const
return tmp;
}
void SELECTION_AREA::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
{
auto& gal = *aView->GetGAL();
@ -121,6 +122,7 @@ void SELECTION_AREA::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
gal.SetIsStroke( true );
gal.SetIsFill( true );
gal.SetLineWidth( 1.0 / gal.GetWorldScale() );
// Set the stroke color to indicate window or crossing selection
gal.SetStrokeColor( ( m_origin.x <= m_end.x ) ? scheme.outline_l2r : scheme.outline_r2l );
gal.DrawRectangle( m_origin, m_end );