Convert selection shadow width to internal units.

Fixes https://gitlab.com/kicad/code/kicad/issues/3740
This commit is contained in:
Jonatan Liljedahl 2020-01-06 13:25:28 +01:00 committed by Wayne Stambaugh
parent 28222d3bd0
commit 2f52ef33b4
1 changed files with 2 additions and 1 deletions

View File

@ -232,7 +232,8 @@ float SCH_PAINTER::getShadowWidth()
// For best visuals the selection width must be a cross between the zoom level and the
// default line width.
return static_cast<float>( fabs( matrix.GetScale().x * 2.75 ) + GetSelectionThickness() );
return static_cast<float>(
fabs( matrix.GetScale().x * 2.75 ) + Mils2iu( GetSelectionThickness() ) );
}