diff --git a/common/preview_items/ruler_item.cpp b/common/preview_items/ruler_item.cpp index ddcbdc918d..67e7196f7a 100644 --- a/common/preview_items/ruler_item.cpp +++ b/common/preview_items/ruler_item.cpp @@ -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;