Browse Source

pcad2kicadpcb_plugin: use default text parameters if not defined

pull/5/merge
Eldar Khayrullin 8 years ago
committed by Maciej Suminski
parent
commit
21ddb2d989
  1. 8
      pcbnew/pcad2kicadpcb_plugin/pcad2kicad_common.cpp

8
pcbnew/pcad2kicadpcb_plugin/pcad2kicad_common.cpp

@ -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…
Cancel
Save