Commit 5465966c authored by Wayne Stambaugh's avatar Wayne Stambaugh

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

parent d9af562f
...@@ -510,7 +510,7 @@ void SCH_COMPONENT::SetRef( SCH_SHEET_PATH* sheet, const wxString& ref ) ...@@ -510,7 +510,7 @@ void SCH_COMPONENT::SetRef( SCH_SHEET_PATH* sheet, const wxString& ref )
} }
else else
{ {
prefix = wxT("U"); // Set to default ref prefix prefix = wxT( "U" ); // Set to default ref prefix
} }
if( m_prefix != prefix ) if( m_prefix != prefix )
...@@ -524,7 +524,7 @@ void SCH_COMPONENT::SetTimeStamp( long aNewTimeStamp ) ...@@ -524,7 +524,7 @@ void SCH_COMPONENT::SetTimeStamp( long aNewTimeStamp )
string_timestamp.Printf( wxT( "%8.8X" ), aNewTimeStamp ); string_timestamp.Printf( wxT( "%8.8X" ), aNewTimeStamp );
string_oldtimestamp.Printf( wxT( "%8.8X" ), m_TimeStamp ); string_oldtimestamp.Printf( wxT( "%8.8X" ), m_TimeStamp );
SetTimeStamp( aNewTimeStamp ); EDA_ITEM::SetTimeStamp( aNewTimeStamp );
for( unsigned ii = 0; ii < m_PathsAndReferences.GetCount(); ii++ ) for( unsigned ii = 0; ii < m_PathsAndReferences.GetCount(); ii++ )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment