[Igarden-commit] Garden/source/LayoutDB Element.cpp, 1.40.2.9, 1.40.2.10
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2008-04-16 11:33:08
|
Update of /cvsroot/igarden/Garden/source/LayoutDB In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv14991/source/LayoutDB Modified Files: Tag: Release_branch_v1 Element.cpp Log Message: Prevent an identical warning from being raised multiple times on the same plan Index: Element.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/LayoutDB/Element.cpp,v retrieving revision 1.40.2.9 retrieving revision 1.40.2.10 diff -C2 -d -r1.40.2.9 -r1.40.2.10 *** Element.cpp 16 Apr 2008 10:20:58 -0000 1.40.2.9 --- Element.cpp 16 Apr 2008 11:33:11 -0000 1.40.2.10 *************** *** 605,616 **** { warningEntry_t entry; ! entry._warningType = wtype; ! entry._acknowledged = acknowledged; ! if(str != NULL) ! entry._value = new String(str); ! else ! entry._value = NULL; ! _warnings.push_back(entry); } --- 605,635 ---- { warningEntry_t entry; + long i, count; + bool found; ! count = NumWarnings(); ! for(i =0,found = false; i < count && !found; i++) ! { ! if(wtype == GetIndexedWarningType(i)) ! { ! String msg; ! bool hasMsg = GetIndexedWarningMessage(i, msg); ! if(str == NULL) ! found = true; ! else if(hasMsg && (str != NULL) && String(str) == msg) ! found = true; ! } ! } ! ! if(!found) ! { ! entry._warningType = wtype; ! entry._acknowledged = acknowledged; ! if(str != NULL) ! entry._value = new String(str); ! else ! entry._value = NULL; ! _warnings.push_back(entry); ! } } |