Fix infinite recursion bug in SCH_COMPONENT::SetTimeStamp().

This commit is contained in:
Wayne Stambaugh 2011-12-12 15:59:43 -05:00
parent d9af562f8f
commit 5465966c7b
1 changed files with 2 additions and 2 deletions

View File

@ -510,7 +510,7 @@ void SCH_COMPONENT::SetRef( SCH_SHEET_PATH* sheet, const wxString& ref )
}
else
{
prefix = wxT("U"); // Set to default ref prefix
prefix = wxT( "U" ); // Set to default ref prefix
}
if( m_prefix != prefix )
@ -524,7 +524,7 @@ void SCH_COMPONENT::SetTimeStamp( long aNewTimeStamp )
string_timestamp.Printf( wxT( "%8.8X" ), aNewTimeStamp );
string_oldtimestamp.Printf( wxT( "%8.8X" ), m_TimeStamp );
SetTimeStamp( aNewTimeStamp );
EDA_ITEM::SetTimeStamp( aNewTimeStamp );
for( unsigned ii = 0; ii < m_PathsAndReferences.GetCount(); ii++ )
{