Fix accidental ingoring of rotation angle.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20271
This commit is contained in:
Jeff Young 2025-03-19 17:16:01 +00:00
parent 7e046e6c8b
commit f0c81e972f

View File

@ -745,8 +745,10 @@ void PCB_IO_EAGLE::loadPlain( wxXmlNode* aGraphics )
if( t.rot )
{
if( !t.rot->spin )
degrees = t.rot->mirror ? -t.rot->degrees : t.rot->degrees;
degrees = t.rot->degrees;
if( t.rot->mirror && !t.rot->spin )
degrees *= -1;
if( t.rot->mirror )
pcbtxt->SetMirrored( t.rot->mirror );