From cef5792e785586da966e95ddba636dc2524e0340 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 27 Sep 2021 10:34:32 +0100 Subject: [PATCH] Formatting. --- common/eda_text.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/eda_text.cpp b/common/eda_text.cpp index 5e19b17998..2c630e2c7b 100644 --- a/common/eda_text.cpp +++ b/common/eda_text.cpp @@ -539,8 +539,10 @@ void EDA_TEXT::Format( OUTPUTFORMATTER* aFormatter, int aNestLevel, int aControl FormatInternalUnits( GetTextWidth() ).c_str() ); if( GetTextThickness() ) + { aFormatter->Print( 0, " (thickness %s)", FormatInternalUnits( GetTextThickness() ).c_str() ); + } if( IsBold() ) aFormatter->Print( 0, " bold" ); @@ -550,18 +552,16 @@ void EDA_TEXT::Format( OUTPUTFORMATTER* aFormatter, int aNestLevel, int aControl aFormatter->Print( 0, ")"); // (font - if( IsMirrored() || - GetHorizJustify() != GR_TEXT_HJUSTIFY_CENTER || - GetVertJustify() != GR_TEXT_VJUSTIFY_CENTER ) + if( IsMirrored() || GetHorizJustify() != GR_TEXT_HJUSTIFY_CENTER + || GetVertJustify() != GR_TEXT_VJUSTIFY_CENTER ) { aFormatter->Print( 0, " (justify"); if( GetHorizJustify() != GR_TEXT_HJUSTIFY_CENTER ) - aFormatter->Print( 0, - ( GetHorizJustify() == GR_TEXT_HJUSTIFY_LEFT ) ? " left" : " right" ); + aFormatter->Print( 0, GetHorizJustify() == GR_TEXT_HJUSTIFY_LEFT ? " left" : " right" ); if( GetVertJustify() != GR_TEXT_VJUSTIFY_CENTER ) - aFormatter->Print( 0, (GetVertJustify() == GR_TEXT_VJUSTIFY_TOP) ? " top" : " bottom" ); + aFormatter->Print( 0, GetVertJustify() == GR_TEXT_VJUSTIFY_TOP ? " top" : " bottom" ); if( IsMirrored() ) aFormatter->Print( 0, " mirror" );