diff options
author | Eike Rathke <erack@redhat.com> | 2014-12-16 15:21:52 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-12-16 15:44:11 +0100 |
commit | ca9a81b2ca858b82e863e1e6f917928916fea79e (patch) | |
tree | 7380ae9b26fa472d982f06adeb28eb5ecc424f2b /sc/source/filter/oox/sheetdatabuffer.cxx | |
parent | 90a8be80c09b4f1495e34a80835b40378e95e20c (diff) |
implement an actually working setErrorCell() from BIFF error codes
Not that we're currently using that, but..
Change-Id: I67b8fc324779875ba14e2d69204c40fe27cc180e
Diffstat (limited to 'sc/source/filter/oox/sheetdatabuffer.cxx')
-rw-r--r-- | sc/source/filter/oox/sheetdatabuffer.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx index 1e66c879864f..45c9fa9356db 100644 --- a/sc/source/filter/oox/sheetdatabuffer.cxx +++ b/sc/source/filter/oox/sheetdatabuffer.cxx @@ -204,16 +204,7 @@ void SheetDataBuffer::setErrorCell( const CellModel& rModel, const OUString& rEr 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; - aBuf.append('{'); - aBuf.append(BiffHelper::calcDoubleFromError(nErrorCode)); - aBuf.append('}'); - - getFormulaBuffer().setCellFormula(rModel.maCellAddr, aBuf.makeStringAndClear()); - setCellFormat( rModel ); + setErrorCell( rModel, getUnitConverter().calcErrorString( nErrorCode)); } void SheetDataBuffer::setDateCell( const CellModel& rModel, const OUString& rDateString ) |