diff --git a/pcbnew/pcad2kicadpcb_plugin/pcb_text.cpp b/pcbnew/pcad2kicadpcb_plugin/pcb_text.cpp index 28cfd4fb2e..89b939df0b 100644 --- a/pcbnew/pcad2kicadpcb_plugin/pcb_text.cpp +++ b/pcbnew/pcad2kicadpcb_plugin/pcb_text.cpp @@ -3,7 +3,7 @@ * * Copyright (C) 2007, 2008 Lubo Racko * Copyright (C) 2007, 2008, 2012 Alexander Lunev - * Copyright (C) 2012 KiCad Developers, see CHANGELOG.TXT for contributors. + * Copyright (C) 2012-2020 KiCad Developers, see CHANGELOG.TXT for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -116,7 +116,6 @@ void PCB_TEXT::AddToBoard() pcbtxt->SetItalic( m_name.isItalic ); pcbtxt->SetThickness( m_name.textstrokeWidth ); - pcbtxt->SetTextAngle( m_name.textRotation ); SetTextJustify( pcbtxt, m_name.justify ); pcbtxt->SetTextPos( wxPoint( m_name.textPositionX, @@ -124,6 +123,11 @@ void PCB_TEXT::AddToBoard() pcbtxt->SetMirrored( m_name.mirror ); + if( pcbtxt->IsMirrored() ) + pcbtxt->SetTextAngle( 3600.0 - m_name.textRotation ); + else + pcbtxt->SetTextAngle( m_name.textRotation ); + pcbtxt->SetLayer( m_KiCadLayer ); }