Fix parsing of legacy text hide token

(cherry picked from commit 53c2543474)
This commit is contained in:
Jon Evans 2024-04-02 18:25:55 -04:00
parent 6ac1f39e62
commit e5d4f58d65
1 changed files with 1 additions and 4 deletions

View File

@ -620,10 +620,7 @@ void PCB_IO_KICAD_SEXPR_PARSER::parseEDA_TEXT( EDA_TEXT* aText )
break;
case T_hide:
if( NextTok() == T_yes || NextTok() == T_no )
aText->SetVisible( !parseBool() );
else
aText->SetVisible( false );
aText->SetVisible( !parseMaybeAbsentBool( true ) );
break;
default: