Fix the duplicate branches warning

This commit is contained in:
Jon Evans 2020-05-23 12:37:02 -04:00
parent de9520d65e
commit b4ceddbcd8
1 changed files with 1 additions and 5 deletions

View File

@ -168,11 +168,7 @@ void TEXTE_MODULE::Flip( const wxPoint& aCentre, bool aFlipLeftRight )
// adjust justified text for mirroring // adjust justified text for mirroring
if( GetHorizJustify() == GR_TEXT_HJUSTIFY_LEFT || GetHorizJustify() == GR_TEXT_HJUSTIFY_RIGHT ) if( GetHorizJustify() == GR_TEXT_HJUSTIFY_LEFT || GetHorizJustify() == GR_TEXT_HJUSTIFY_RIGHT )
{ {
if( ( GetHorizJustify() == GR_TEXT_HJUSTIFY_RIGHT ) == IsMirrored() ) SetHorizJustify( static_cast<EDA_TEXT_HJUSTIFY_T>( -GetHorizJustify() ) );
SetHorizJustify( (EDA_TEXT_HJUSTIFY_T)-GetHorizJustify() );
else
SetHorizJustify( (EDA_TEXT_HJUSTIFY_T)-GetHorizJustify() );
SetDrawCoord(); SetDrawCoord();
} }
} }