Rewrite number string, dont' append to it

This commit is contained in:
Jon Evans 2023-11-01 12:18:30 -04:00
parent 2b3ad808ea
commit 85f720e940
1 changed files with 2 additions and 2 deletions

View File

@ -555,7 +555,7 @@ void SCH_REFERENCE_LIST::Annotate( bool aUseSheetNum, int aSheetIntervalId, int
GetRefsInUse( first, idList, minRefId ); GetRefsInUse( first, idList, minRefId );
LastReferenceNumber = createFirstFreeRefId( idList, minRefId ); LastReferenceNumber = createFirstFreeRefId( idList, minRefId );
ref_unit.m_numRef = LastReferenceNumber; ref_unit.m_numRef = LastReferenceNumber;
ref_unit.m_numRefStr << LastReferenceNumber; ref_unit.m_numRefStr = wxString::Format( "%d", LastReferenceNumber );
} }
ref_unit.m_flag = 1; ref_unit.m_flag = 1;
@ -574,7 +574,7 @@ void SCH_REFERENCE_LIST::Annotate( bool aUseSheetNum, int aSheetIntervalId, int
{ {
LastReferenceNumber = FindFirstUnusedReference( ref_unit, minRefId, units ); LastReferenceNumber = FindFirstUnusedReference( ref_unit, minRefId, units );
ref_unit.m_numRef = LastReferenceNumber; ref_unit.m_numRef = LastReferenceNumber;
ref_unit.m_numRefStr << LastReferenceNumber; ref_unit.m_numRefStr = wxString::Format( "%d", LastReferenceNumber );
ref_unit.m_isNew = false; ref_unit.m_isNew = false;
ref_unit.m_flag = 1; ref_unit.m_flag = 1;
} }