7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Potential fix for Eagle -> Kicad -> Freerouter -> Kicad issue.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18796
This commit is contained in:
Jeff Young 2024-09-30 09:38:24 +01:00
parent 330150a6a6
commit 4a82690887

View File

@ -981,11 +981,11 @@ void PCB_IO_EAGLE::loadPlain( wxXmlNode* aGraphics )
m_xpath->push( "hole" );
// Fabricate a FOOTPRINT with a single PAD_ATTRIB::NPTH pad.
// Use m_hole_count to gen up a unique name.
// Use m_hole_count to gen up a unique reference designator.
FOOTPRINT* footprint = new FOOTPRINT( m_board );
m_board->Add( footprint, ADD_MODE::APPEND );
footprint->SetReference( wxString::Format( wxT( "@HOLE%d" ), m_hole_count++ ) );
footprint->SetReference( wxString::Format( wxT( "UNK_HOLE_%d" ), m_hole_count++ ) );
footprint->Reference().SetVisible( false );
packageHole( footprint, gr, true );