mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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( '/' );
|
||||
|
||||
if( aSheetPath.IsEmpty() )
|
||||
aSheetPath += '/';
|
||||
if( footprint_path.IsEmpty() )
|
||||
footprint_path += '/';
|
||||
|
||||
if( footprint_path == aSheetPath )
|
||||
footprints.push_back( footprint );
|
||||
|
Loading…
x
Reference in New Issue
Block a user