7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 09:41:41 +00:00

Update instance reference from property inspector.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19932
This commit is contained in:
Jeff Young 2025-02-14 20:25:11 +00:00
parent 1c848bb9fb
commit 56b8fec74b

View File

@ -74,6 +74,16 @@ SCHEMATIC::SCHEMATIC( PROJECT* aPrj ) :
wxString newValue = aItem->Get<wxString>( aProperty );
if( field->GetId() == REFERENCE_FIELD )
{
symbol->SetRef( &sheetPath, newValue );
// The user might want to change all the units to the new ref. Or they
// might not. Since we have no way of knowing, we default to the most
// concrete action (change only the selected reference).
return;
}
wxString ref = symbol->GetRef( &sheetPath );
int unit = symbol->GetUnit();
LIB_ID libId = symbol->GetLibId();