Eeschema Eagle Import: fixed global net label rotation
This commit is contained in:
parent
0ed7483868
commit
59394fedbf
|
@ -853,15 +853,15 @@ SCH_TEXT* SCH_EAGLE_PLUGIN::loadLabel( wxXmlNode* aLabelNode,
|
||||||
glabel->SetPosition( elabelpos );
|
glabel->SetPosition( elabelpos );
|
||||||
glabel->SetText( netname );
|
glabel->SetText( netname );
|
||||||
glabel->SetTextSize( wxSize( elabel.size.ToSchUnits(), elabel.size.ToSchUnits() ) );
|
glabel->SetTextSize( wxSize( elabel.size.ToSchUnits(), elabel.size.ToSchUnits() ) );
|
||||||
glabel->SetLabelSpinStyle( 0 );
|
glabel->SetLabelSpinStyle( 2 );
|
||||||
|
|
||||||
if( elabel.rot )
|
if( elabel.rot )
|
||||||
{
|
{
|
||||||
glabel->SetLabelSpinStyle( int(elabel.rot->degrees / 90) % 4 );
|
glabel->SetLabelSpinStyle( ( int( elabel.rot->degrees ) / 90 + 2 ) % 4 );
|
||||||
|
|
||||||
if( elabel.rot->mirror
|
if( elabel.rot->mirror
|
||||||
&& ( glabel->GetLabelSpinStyle() == 0 || glabel->GetLabelSpinStyle() == 2 ) )
|
&& ( glabel->GetLabelSpinStyle() == 0 || glabel->GetLabelSpinStyle() == 2 ) )
|
||||||
glabel->SetLabelSpinStyle( (glabel->GetLabelSpinStyle() + 2) % 4 );
|
glabel->SetLabelSpinStyle( glabel->GetLabelSpinStyle() % 4 );
|
||||||
}
|
}
|
||||||
|
|
||||||
SCH_LINE* wire;
|
SCH_LINE* wire;
|
||||||
|
|
Loading…
Reference in New Issue