Eeschema Eagle Import: fixed global net label rotation

This commit is contained in:
Maciej Suminski 2017-10-18 13:43:30 +02:00
parent 0ed7483868
commit 59394fedbf
1 changed files with 3 additions and 3 deletions

View File

@ -853,15 +853,15 @@ SCH_TEXT* SCH_EAGLE_PLUGIN::loadLabel( wxXmlNode* aLabelNode,
glabel->SetPosition( elabelpos );
glabel->SetText( netname );
glabel->SetTextSize( wxSize( elabel.size.ToSchUnits(), elabel.size.ToSchUnits() ) );
glabel->SetLabelSpinStyle( 0 );
glabel->SetLabelSpinStyle( 2 );
if( elabel.rot )
{
glabel->SetLabelSpinStyle( int(elabel.rot->degrees / 90) % 4 );
glabel->SetLabelSpinStyle( ( int( elabel.rot->degrees ) / 90 + 2 ) % 4 );
if( elabel.rot->mirror
&& ( glabel->GetLabelSpinStyle() == 0 || glabel->GetLabelSpinStyle() == 2 ) )
glabel->SetLabelSpinStyle( (glabel->GetLabelSpinStyle() + 2) % 4 );
glabel->SetLabelSpinStyle( glabel->GetLabelSpinStyle() % 4 );
}
SCH_LINE* wire;