From f9253485da880fc76d6e5f54fd097b499ea4e3c5 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 4 Mar 2024 19:48:03 +0300 Subject: [PATCH] Fabmaster (CADENCE ASCII) import: fix position and orientation of footprint graphics. Fixes https://gitlab.com/kicad/code/kicad/-/issues/17239 (cherry picked from commit cb4ace55612d14640b5a8c411b0bffc7da5a530a) --- pcbnew/pcb_io/fabmaster/import_fabmaster.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pcbnew/pcb_io/fabmaster/import_fabmaster.cpp b/pcbnew/pcb_io/fabmaster/import_fabmaster.cpp index e32139ac87..1dcf965b7f 100644 --- a/pcbnew/pcb_io/fabmaster/import_fabmaster.cpp +++ b/pcbnew/pcb_io/fabmaster/import_fabmaster.cpp @@ -2107,9 +2107,6 @@ bool FABMASTER::loadFootprints( BOARD* aBoard ) line->SetStroke( STROKE_PARAMS( lsrc->width, LINE_STYLE::SOLID ) ); - line->Rotate( { 0, 0 }, fp->GetOrientation() ); - line->Move( fp->GetPosition() ); - if( lsrc->width == 0 ) line->SetStroke( defaultStroke ); @@ -2127,9 +2124,6 @@ bool FABMASTER::loadFootprints( BOARD* aBoard ) circle->SetEnd( VECTOR2I( lsrc->end_x, lsrc->end_y ) ); circle->SetWidth( lsrc->width ); - circle->Rotate( { 0, 0 }, fp->GetOrientation() ); - circle->Move( fp->GetPosition() ); - if( lsrc->width == 0 ) circle->SetWidth( ds.GetLineThickness( circle->GetLayer() ) ); @@ -2151,9 +2145,6 @@ bool FABMASTER::loadFootprints( BOARD* aBoard ) lsrc->result.GetP1() ); arc->SetStroke( STROKE_PARAMS( lsrc->width, LINE_STYLE::SOLID ) ); - arc->Rotate( { 0, 0 }, fp->GetOrientation() ); - arc->Move( fp->GetPosition() ); - if( lsrc->width == 0 ) arc->SetStroke( defaultStroke ); @@ -2185,9 +2176,6 @@ bool FABMASTER::loadFootprints( BOARD* aBoard ) rect->SetStroke( defaultStroke ); - rect->Rotate( { 0, 0 }, fp->GetOrientation() ); - rect->Move( fp->GetPosition() ); - fp->Add( rect, ADD_MODE::APPEND ); break; }