Update instance reference from property inspector.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19932

(cherry picked from commit 56b8fec74b)
This commit is contained in:
Jeff Young
2025-02-20 13:37:33 +00:00
parent f8c0109c6e
commit db44690460
+10
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();