From 5f4acdee0ece3d982b824f09e0029f05d5e3b8e2 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Mon, 12 Dec 2011 15:59:43 -0500 Subject: [PATCH] Fix infinite recursion bug in SCH_COMPONENT::SetTimeStamp(). --- eeschema/sch_component.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index fc468b1de4..23f4043470 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -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++ ) {