Squash GCC warning about boolean expression

This commit is contained in:
Jon Evans 2021-04-13 21:53:43 -04:00
parent 39c1387b5b
commit 4f191ce2c7
1 changed files with 2 additions and 2 deletions

View File

@ -2543,8 +2543,8 @@ void CADSTAR_ARCHIVE_PARSER::FixTextPositionNoAlignment( EDA_TEXT* aKiCadTextIte
EDA_ITEM* textEdaItem = dynamic_cast<EDA_ITEM*>( aKiCadTextItem );
if( textEdaItem && ( textEdaItem->Type() == LIB_TEXT_T )
|| ( textEdaItem->Type() == LIB_FIELD_T ) )
if( textEdaItem &&
( textEdaItem->Type() == LIB_TEXT_T || textEdaItem->Type() == LIB_FIELD_T ) )
{
// Y coordinate increases upwards in the symbol editor
positionOffset.y = -positionOffset.y;