selectAllItemsOnSheet(): fix a typo that prevent selection of items in root sheet.
This commit is contained in:
parent
e0fbe2542f
commit
a60053c800
|
@ -1402,8 +1402,8 @@ void PCB_SELECTION_TOOL::selectAllItemsOnSheet( wxString& aSheetPath )
|
||||||
|
|
||||||
wxString footprint_path = footprint->GetPath().AsString().BeforeLast( '/' );
|
wxString footprint_path = footprint->GetPath().AsString().BeforeLast( '/' );
|
||||||
|
|
||||||
if( aSheetPath.IsEmpty() )
|
if( footprint_path.IsEmpty() )
|
||||||
aSheetPath += '/';
|
footprint_path += '/';
|
||||||
|
|
||||||
if( footprint_path == aSheetPath )
|
if( footprint_path == aSheetPath )
|
||||||
footprints.push_back( footprint );
|
footprints.push_back( footprint );
|
||||||
|
|
Loading…
Reference in New Issue