Kaydet (Commit) 994607b5 authored tarafından Eike Rathke's avatar Eike Rathke

fdo#79249 call formula compiler with error string

... instead of attempting to stringize a NaN coded error value.

Regression introduced with 30a20743

Change-Id: Ia7a8ca39938820ac75db169404446fa696c6ee1b
üst 3e17677f
...@@ -197,11 +197,16 @@ void SheetDataBuffer::setBooleanCell( const CellModel& rModel, bool bValue ) ...@@ -197,11 +197,16 @@ void SheetDataBuffer::setBooleanCell( const CellModel& rModel, bool bValue )
void SheetDataBuffer::setErrorCell( const CellModel& rModel, const OUString& rErrorCode ) void SheetDataBuffer::setErrorCell( const CellModel& rModel, const OUString& rErrorCode )
{ {
setErrorCell( rModel, getUnitConverter().calcBiffErrorCode( rErrorCode ) ); // Using the formula compiler now we can simply pass on the error string.
getFormulaBuffer().setCellFormula( rModel.maCellAddr, rErrorCode);
setCellFormat( rModel );
} }
void SheetDataBuffer::setErrorCell( const CellModel& rModel, sal_uInt8 nErrorCode ) void SheetDataBuffer::setErrorCell( const CellModel& rModel, sal_uInt8 nErrorCode )
{ {
assert(!"stringizing any NaN will only give 'nan'");
/* FIXME: map nErrorCode to error string and call setErrorCell() above. */
OUStringBuffer aBuf; OUStringBuffer aBuf;
aBuf.append('{'); aBuf.append('{');
aBuf.append(BiffHelper::calcDoubleFromError(nErrorCode)); aBuf.append(BiffHelper::calcDoubleFromError(nErrorCode));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment