From ae1ece7a78a67295dbd1c112a99b395476994ae5 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 25 May 2022 23:19:41 +0100 Subject: [PATCH] Fix duplicate spaces before units. Fixes https://gitlab.com/kicad/code/kicad/issues/11675 --- pcbnew/pcb_dimension.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcbnew/pcb_dimension.cpp b/pcbnew/pcb_dimension.cpp index 1b2aba292b..3601860838 100644 --- a/pcbnew/pcb_dimension.cpp +++ b/pcbnew/pcb_dimension.cpp @@ -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; }