Search in label fields.
Fixes https://gitlab.com/kicad/code/kicad/issues/14075
This commit is contained in:
parent
1f140953d6
commit
a24a63e416
|
@ -142,8 +142,7 @@ SCH_ITEM* SCH_FIND_REPLACE_TOOL::nextMatch( SCH_SCREEN* aScreen, SCH_SHEET_PATH*
|
||||||
for( SCH_PIN* pin : cmp->GetPins() )
|
for( SCH_PIN* pin : cmp->GetPins() )
|
||||||
sorted_items.push_back( pin );
|
sorted_items.push_back( pin );
|
||||||
}
|
}
|
||||||
|
else if( item->Type() == SCH_SHEET_T )
|
||||||
if( item->Type() == SCH_SHEET_T )
|
|
||||||
{
|
{
|
||||||
SCH_SHEET* sheet = static_cast<SCH_SHEET*>( item );
|
SCH_SHEET* sheet = static_cast<SCH_SHEET*>( item );
|
||||||
|
|
||||||
|
@ -153,6 +152,13 @@ SCH_ITEM* SCH_FIND_REPLACE_TOOL::nextMatch( SCH_SCREEN* aScreen, SCH_SHEET_PATH*
|
||||||
for( SCH_SHEET_PIN* pin : sheet->GetPins() )
|
for( SCH_SHEET_PIN* pin : sheet->GetPins() )
|
||||||
sorted_items.push_back( pin );
|
sorted_items.push_back( pin );
|
||||||
}
|
}
|
||||||
|
else if( item->IsType( { SCH_LABEL_LOCATE_ANY_T } ) )
|
||||||
|
{
|
||||||
|
SCH_LABEL_BASE* label = static_cast<SCH_LABEL_BASE*>( item );
|
||||||
|
|
||||||
|
for( SCH_FIELD& field : label->GetFields() )
|
||||||
|
sorted_items.push_back( &field );
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if( selectedOnly )
|
if( selectedOnly )
|
||||||
|
|
Loading…
Reference in New Issue