selectAllItemsOnSheet(): fix a typo that prevent selection of items in root sheet.

This commit is contained in:
jean-pierre charras 2022-08-19 11:12:16 +02:00
parent e0fbe2542f
commit a60053c800
1 changed files with 2 additions and 2 deletions

View File

@ -1402,8 +1402,8 @@ void PCB_SELECTION_TOOL::selectAllItemsOnSheet( wxString& aSheetPath )
wxString footprint_path = footprint->GetPath().AsString().BeforeLast( '/' );
if( aSheetPath.IsEmpty() )
aSheetPath += '/';
if( footprint_path.IsEmpty() )
footprint_path += '/';
if( footprint_path == aSheetPath )
footprints.push_back( footprint );