diff --git a/eeschema/schematic.cpp b/eeschema/schematic.cpp index 7c54bc933e..dad079ed09 100644 --- a/eeschema/schematic.cpp +++ b/eeschema/schematic.cpp @@ -74,6 +74,16 @@ SCHEMATIC::SCHEMATIC( PROJECT* aPrj ) : wxString newValue = aItem->Get( 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();