Fix the duplicate branches warning
This commit is contained in:
parent
de9520d65e
commit
b4ceddbcd8
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue