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:
parent
aa09418a14
commit
308ab8cafa
|
@ -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
|
// could start at a set number of MM, but that's not available in common
|
||||||
aTickSpace = 1;
|
aTickSpace = 1;
|
||||||
|
|
||||||
// convert to a round (mod-10) number of mils
|
// Convert to a round (mod-10) number of mils for imperial units
|
||||||
if( aUnits == EDA_UNITS::INCHES )
|
if( EDA_UNIT_UTILS::IsImperialUnit( aUnits ) )
|
||||||
{
|
|
||||||
aTickSpace *= 2.54;
|
aTickSpace *= 2.54;
|
||||||
}
|
|
||||||
|
|
||||||
int tickFormat = 0;
|
int tickFormat = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue