Fix GenCAD Export flipped footprints
GenCAD Exporter flips the board footprints before exporting. The exporter assumes that the flip happens T/B and not L/R. Fixes KSC Issue #356
This commit is contained in:
parent
c5571afbd9
commit
387cd36f60
|
@ -289,7 +289,7 @@ void PCB_EDIT_FRAME::ExportToGenCAD( wxCommandEvent& aEvent )
|
|||
|
||||
if( footprint->GetLayer() == B_Cu )
|
||||
{
|
||||
footprint->Flip( footprint->GetPosition(), Settings().m_FlipLeftRight );
|
||||
footprint->Flip( footprint->GetPosition(), false );
|
||||
footprint->SetFlag( 1 );
|
||||
}
|
||||
}
|
||||
|
@ -323,7 +323,7 @@ void PCB_EDIT_FRAME::ExportToGenCAD( wxCommandEvent& aEvent )
|
|||
{
|
||||
if( footprint->GetFlag() )
|
||||
{
|
||||
footprint->Flip( footprint->GetPosition(), Settings().m_FlipLeftRight );
|
||||
footprint->Flip( footprint->GetPosition(), false );
|
||||
footprint->SetFlag( 0 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue