From 59394fedbf555d36c6243491f4d4da6d0ee3b220 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 18 Oct 2017 13:43:30 +0200 Subject: [PATCH] Eeschema Eagle Import: fixed global net label rotation --- eeschema/sch_eagle_plugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/sch_eagle_plugin.cpp b/eeschema/sch_eagle_plugin.cpp index 47390bd4d5..26c3e7dddc 100644 --- a/eeschema/sch_eagle_plugin.cpp +++ b/eeschema/sch_eagle_plugin.cpp @@ -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;