Fixed for i#103021
[ooovba.git] / applied_patches / 0145-sc-string-arg-ref-formula-cell.diff
blob25b62c85fa78912ee234fb5f2d01bb6276d45b9a
1 diff -urp --exclude=CVS --exclude=unxlngi6.pro --exclude=sc.vpj sc.clean/source/core/tool/interpr4.cxx sc/source/core/tool/interpr4.cxx
2 --- sc.clean/source/core/tool/interpr4.cxx 2008-05-16 12:06:11.000000000 -0400
3 +++ sc/source/core/tool/interpr4.cxx 2008-05-16 12:18:44.000000000 -0400
4 @@ -242,8 +242,14 @@ double ScInterpreter::GetCellValueOrZero
6 else
8 - SetError(errCellNoValue);
9 - fValue = 0.0;
10 + String aStr;
11 + pFCell->GetString(aStr);
12 + sal_uInt32 nFIndex = 0;
13 + if (!pFormatter->IsNumberFormat(aStr, nFIndex, fValue))
14 + {
15 + SetError(errCellNoValue);
16 + fValue = 0.0;
17 + }
20 else