pcad2kicadpcb_plugin: use default text parameters if not defined

This commit is contained in:
Eldar Khayrullin 2017-12-10 10:10:17 +03:00 committed by Maciej Suminski
parent 845ca5f641
commit 21ddb2d989
1 changed files with 7 additions and 1 deletions

View File

@ -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" ) );