Set line width for SELECTION_AREA
Fixes: lp:1743242 * https://bugs.launchpad.net/kicad/+bug/1743242
This commit is contained in:
parent
74d47d8173
commit
495c4125f9
|
@ -95,6 +95,7 @@ const BOX2I SELECTION_AREA::ViewBBox() const
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SELECTION_AREA::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
|
void SELECTION_AREA::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
|
||||||
{
|
{
|
||||||
auto& gal = *aView->GetGAL();
|
auto& gal = *aView->GetGAL();
|
||||||
|
@ -121,6 +122,7 @@ void SELECTION_AREA::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
|
||||||
gal.SetIsStroke( true );
|
gal.SetIsStroke( true );
|
||||||
gal.SetIsFill( true );
|
gal.SetIsFill( true );
|
||||||
|
|
||||||
|
gal.SetLineWidth( 1.0 / gal.GetWorldScale() );
|
||||||
// Set the stroke color to indicate window or crossing selection
|
// 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.SetStrokeColor( ( m_origin.x <= m_end.x ) ? scheme.outline_l2r : scheme.outline_r2l );
|
||||||
gal.DrawRectangle( m_origin, m_end );
|
gal.DrawRectangle( m_origin, m_end );
|
||||||
|
|
Loading…
Reference in New Issue