From 9d51fabe9b9872ed40a5b56c6a4c66f9eb1b348a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 9 Jun 2024 22:13:06 +0100 Subject: [PATCH] Don't default KeepUpright to true in Eagle importer. Fixes https://gitlab.com/kicad/code/kicad/-/issues/18175 --- pcbnew/pcb_io/eagle/pcb_io_eagle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp b/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp index f12d59c0f8..be25c5ff37 100644 --- a/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp +++ b/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp @@ -728,6 +728,7 @@ void PCB_IO_EAGLE::loadPlain( wxXmlNode* aGraphics ) int textThickness = KiROUND( t.size.ToPcbUnits() * ratio / 100 ); pcbtxt->SetTextThickness( textThickness ); pcbtxt->SetTextSize( kicad_fontsize( t.size, textThickness ) ); + pcbtxt->SetKeepUpright( false ); // Eagle's anchor is independent of text justification; KiCad's is not. VECTOR2I eagleAnchor( kicad_x( t.x ), kicad_y( t.y ) ); @@ -2080,6 +2081,7 @@ void PCB_IO_EAGLE::packageText( FOOTPRINT* aFootprint, wxXmlNode* aTree ) const textItem->SetTextThickness( textThickness ); textItem->SetTextSize( kicad_fontsize( t.size, textThickness ) ); + textItem->SetKeepUpright( false ); int align = t.align ? *t.align : ETEXT::BOTTOM_LEFT; // bottom-left is eagle default