pcad2kicadpcb_plugin: use default text parameters if not defined
This commit is contained in:
parent
845ca5f641
commit
21ddb2d989
|
@ -327,12 +327,16 @@ void SetTextParameters( XNODE* aNode,
|
|||
str.Trim( false );
|
||||
aTextValue->textRotation = StrToInt1Units( str );
|
||||
}
|
||||
else
|
||||
{
|
||||
aTextValue->textRotation = 0;
|
||||
}
|
||||
|
||||
str = FindNodeGetContent( aNode, wxT( "isVisible" ) );
|
||||
|
||||
if( str == wxT( "True" ) )
|
||||
aTextValue->textIsVisible = 1;
|
||||
else if( str == wxT( "False" ) )
|
||||
else
|
||||
aTextValue->textIsVisible = 0;
|
||||
|
||||
str = FindNodeGetContent( aNode, wxT( "justify" ) );
|
||||
|
@ -342,6 +346,8 @@ void SetTextParameters( XNODE* aNode,
|
|||
|
||||
if( str == wxT( "True" ) )
|
||||
aTextValue->mirror = 1;
|
||||
else
|
||||
aTextValue->mirror = 0;
|
||||
|
||||
tNode = FindNode( aNode, wxT( "textStyleRef" ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue