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:
parent
1ac1753048
commit
1bac16459a
|
@ -547,11 +547,17 @@ void PCB_PARSER::parseEDA_TEXT( EDA_TEXT* aText )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T_bold:
|
case T_bold:
|
||||||
aText->SetBold( true );
|
{
|
||||||
|
bool value = parseMaybeAbsentBool( true );
|
||||||
|
aText->SetBold( value );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T_italic:
|
case T_italic:
|
||||||
aText->SetItalic( true );
|
{
|
||||||
|
bool value = parseMaybeAbsentBool( true );
|
||||||
|
aText->SetItalic( value );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue