Fix Eagle schematic import debug assertion.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13215
This commit is contained in:
Wayne Stambaugh 2022-12-27 08:31:56 -05:00
parent 314c813aca
commit e68bb16a28
1 changed files with 1 additions and 3 deletions

View File

@ -706,9 +706,7 @@ void SCH_EAGLE_PLUGIN::loadSchematic( wxXmlNode* aSchematicNode )
// There is always at least a root sheet.
m_sheetPath.push_back( m_rootSheet );
SCH_SHEET_PATH rootPath;
rootPath.SetPageNumber( wxT( "1" ) );
m_sheetPath.SetPageNumber( wxT( "1" ) );
int sheetCount = countChildren( sheetNode->GetParent(), wxT( "sheet" ) );