diff --git a/pcbnew/plugins/kicad/pcb_parser.cpp b/pcbnew/plugins/kicad/pcb_parser.cpp index 854bee14a9..50d83bda56 100644 --- a/pcbnew/plugins/kicad/pcb_parser.cpp +++ b/pcbnew/plugins/kicad/pcb_parser.cpp @@ -3226,7 +3226,9 @@ PCB_TEXTBOX* PCB_PARSER::parsePCB_TEXTBOX( BOARD_ITEM* aParent ) switch( token ) { case T_angle: - textbox->SetTextAngle( EDA_ANGLE( parseDouble( "text box angle" ), DEGREES_T ) ); + // Set the angle of the text only, the coordinates of the box (a polygon) are + // already at the right position, and must not be rotated + textbox->EDA_TEXT::SetTextAngle( EDA_ANGLE( parseDouble( "text box angle" ), DEGREES_T ) ); NeedRIGHT(); break; diff --git a/pcbnew/plugins/kicad/pcb_plugin.cpp b/pcbnew/plugins/kicad/pcb_plugin.cpp index 441c6fccc0..a088c86de0 100644 --- a/pcbnew/plugins/kicad/pcb_plugin.cpp +++ b/pcbnew/plugins/kicad/pcb_plugin.cpp @@ -1845,8 +1845,8 @@ void PCB_PLUGIN::format( const PCB_TEXTBOX* aTextBox, int aNestLevel ) const { FOOTPRINT* parentFP = aTextBox->GetParentFootprint(); - m_out->Print( aNestLevel, "(%s_text_box%s %s\n", - parentFP ? "fp" : "gr", + m_out->Print( aNestLevel, "(%s%s %s\n", + parentFP ? "fp_text_box" : "gr_text_box", aTextBox->IsLocked() ? " locked" : "", m_out->Quotew( aTextBox->GetText() ).c_str() );