diff options
author | Eike Rathke <erack@redhat.com> | 2016-10-12 20:41:42 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-10-12 20:43:49 +0200 |
commit | c31fe18cb50724557a9b8272329addf5f818ef47 (patch) | |
tree | afd5b99c59e0f40fd88f74f48c3a2f49ed800629 /sc/source/filter/excel/excform.cxx | |
parent | d9280e97c6e7b27742f26930af56b39a7d4edd75 (diff) |
use isFinite() instead of !isNan()
... to cover (theoretical?) +/-inf values as well.
Change-Id: I23ab17f905bbd32345b88bea87ad6f010a5406ad
Diffstat (limited to 'sc/source/filter/excel/excform.cxx')
-rw-r--r-- | sc/source/filter/excel/excform.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/excform.cxx b/sc/source/filter/excel/excform.cxx index d911f185d2d4..67e7657f3428 100644 --- a/sc/source/filter/excel/excform.cxx +++ b/sc/source/filter/excel/excform.cxx @@ -131,7 +131,7 @@ void ImportExcel::Formula( rDoc.getDoc().EnsureTable(aScPos.Tab()); rDoc.setFormulaCell(aScPos, pCell); pCell->SetNeedNumberFormat(false); - if (!rtl::math::isNan(fCurVal)) + if (rtl::math::isFinite(fCurVal)) pCell->SetResultDouble(fCurVal); GetXFRangeBuffer().SetXF(aScPos, nXF); @@ -173,7 +173,7 @@ void ImportExcel::Formula( if( eErr != ConvOK ) ExcelToSc::SetError( *pCell, eErr ); - if (!rtl::math::isNan(fCurVal)) + if (rtl::math::isFinite(fCurVal)) pCell->SetResultDouble(fCurVal); } |