[Igarden-commit] CommonSource/YAAFExtensions RGTableCell.cpp, 1.46, 1.46.2.1
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2006-12-14 03:07:49
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv21185 Modified Files: Tag: Release_branch_v1 RGTableCell.cpp Log Message: Mark cell value as changed (and send message) if is was fixing an error, and the cell is now valid. Index: RGTableCell.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableCell.cpp,v retrieving revision 1.46 retrieving revision 1.46.2.1 diff -C2 -d -r1.46 -r1.46.2.1 *** RGTableCell.cpp 17 Jun 2006 02:36:32 -0000 1.46 --- RGTableCell.cpp 14 Dec 2006 03:07:48 -0000 1.46.2.1 *************** *** 662,672 **** if(next != ptr) { changed = (val != GetInteger()); SetInteger(val); if(*next != '\0') InputError("Trailing non-digit characters removed from an integer field."); ! else { ! valid = true; } } --- 662,677 ---- if(next != ptr) { + bool wasError = _err; changed = (val != GetInteger()); SetInteger(val); if(*next != '\0') + { InputError("Trailing non-digit characters removed from an integer field."); ! } ! ! valid = true; ! if(wasError) { ! changed = true; } } |