From b4ceddbcd86c06bbf5c9e2b93b3d980fd3aec4c4 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 23 May 2020 12:37:02 -0400 Subject: [PATCH] Fix the duplicate branches warning --- pcbnew/class_text_mod.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pcbnew/class_text_mod.cpp b/pcbnew/class_text_mod.cpp index 56e7e3300b..7c40e1f3b0 100644 --- a/pcbnew/class_text_mod.cpp +++ b/pcbnew/class_text_mod.cpp @@ -168,11 +168,7 @@ void TEXTE_MODULE::Flip( const wxPoint& aCentre, bool aFlipLeftRight ) // adjust justified text for mirroring if( GetHorizJustify() == GR_TEXT_HJUSTIFY_LEFT || GetHorizJustify() == GR_TEXT_HJUSTIFY_RIGHT ) { - if( ( GetHorizJustify() == GR_TEXT_HJUSTIFY_RIGHT ) == IsMirrored() ) - SetHorizJustify( (EDA_TEXT_HJUSTIFY_T)-GetHorizJustify() ); - else - SetHorizJustify( (EDA_TEXT_HJUSTIFY_T)-GetHorizJustify() ); - + SetHorizJustify( static_cast( -GetHorizJustify() ) ); SetDrawCoord(); } }