pcb_parser.cpp: fix parsing issues with T_bolt and T_italic. these keywords

can have a second key (yes or no) or no othe key (i.e. defualt = yes)
This commit is contained in:
jean-pierre charras 2023-11-30 08:58:23 +01:00
parent 1ac1753048
commit 1bac16459a
1 changed files with 8 additions and 2 deletions

View File

@ -547,11 +547,17 @@ void PCB_PARSER::parseEDA_TEXT( EDA_TEXT* aText )
break;
case T_bold:
aText->SetBold( true );
{
bool value = parseMaybeAbsentBool( true );
aText->SetBold( value );
}
break;
case T_italic:
aText->SetItalic( true );
{
bool value = parseMaybeAbsentBool( true );
aText->SetItalic( value );
}
break;
default: