Fix duplicate spaces before units.

Fixes https://gitlab.com/kicad/code/kicad/issues/11675
This commit is contained in:
Jeff Young 2022-05-25 23:19:41 +01:00
parent 616e9b4f4b
commit ae1ece7a78
1 changed files with 1 additions and 2 deletions

View File

@ -78,13 +78,12 @@ void PCB_DIMENSION_BASE::updateText()
break;
case DIM_UNITS_FORMAT::BARE_SUFFIX: // normal
text += wxS( " " );
text += GetAbbreviatedUnitsLabel( m_units );
break;
case DIM_UNITS_FORMAT::PAREN_SUFFIX: // parenthetical
text += wxT( " (" );
text += GetAbbreviatedUnitsLabel( m_units );
text += GetAbbreviatedUnitsLabel( m_units ).Trim( false );
text += wxT( ")" );
break;
}