Properly scale the ticks for all imperial units on the preview ruler

Fixes https://gitlab.com/kicad/code/kicad/issues/6564
This commit is contained in:
Ian McInerney 2020-12-01 01:20:04 +00:00
parent aa09418a14
commit 308ab8cafa
1 changed files with 2 additions and 4 deletions

View File

@ -109,11 +109,9 @@ static TICK_FORMAT getTickFormatForScale( double aScale, double& aTickSpace, EDA
// could start at a set number of MM, but that's not available in common
aTickSpace = 1;
// convert to a round (mod-10) number of mils
if( aUnits == EDA_UNITS::INCHES )
{
// Convert to a round (mod-10) number of mils for imperial units
if( EDA_UNIT_UTILS::IsImperialUnit( aUnits ) )
aTickSpace *= 2.54;
}
int tickFormat = 0;