1 Index: svtools/source/numbers/zforfind.cxx
2 ===================================================================
3 RCS file: /cvs/util/svtools/source/numbers/zforfind.cxx,v
4 retrieving revision 1.47
5 diff -u -p -r1.47 zforfind.cxx
6 --- svtools/source/numbers/zforfind.cxx 27 Jun 2007 21:56:34 -0000 1.47
7 +++ svtools/source/numbers/zforfind.cxx 21 Feb 2008 23:01:27 -0000
8 @@ -1120,9 +1120,16 @@ input for the following reasons:
13 - pCal->setValue( CalendarFieldIndex::DAY_OF_MONTH, ImplGetDay(0) );
15 + USHORT nDay = ImplGetDay(0);
16 + USHORT nYear = ImplGetYear(0);
17 + if (nDay == 0 || nDay > 32) {
18 + pCal->setValue( CalendarFieldIndex::YEAR, nYear);
21 + pCal->setValue( CalendarFieldIndex::DAY_OF_MONTH, ImplGetDay(0) );
25 pCal->setValue( CalendarFieldIndex::YEAR, ImplGetYear(0) );
27 @@ -1543,6 +1550,13 @@ BOOL ImpSvNumberInputScan::ScanStartStri
31 + // skip any trailing '-' or '/' chars
32 + if (nPos < rString.Len())
34 + while (SkipChar ('-', rString, nPos) || SkipChar ('/', rString, nPos)) {
38 if (nPos < rString.Len()) // not everything consumed
40 // Does input StartString equal StartString of format?