Browse Source

Don't default KeepUpright to true in Eagle importer.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18175
fusion360
Jeff Young 1 year ago
parent
commit
ca54eb422b
  1. 2
      pcbnew/pcb_io/eagle/pcb_io_eagle.cpp

2
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

Loading…
Cancel
Save