diff options
Diffstat (limited to 'basic/source/sbx/sbxdate.cxx')
-rw-r--r-- | basic/source/sbx/sbxdate.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/basic/source/sbx/sbxdate.cxx b/basic/source/sbx/sbxdate.cxx index 6b695a9c40c7..057e16f09d03 100644 --- a/basic/source/sbx/sbxdate.cxx +++ b/basic/source/sbx/sbxdate.cxx @@ -84,14 +84,8 @@ double ImpGetDate( const SbxValues* p ) break; case SbxDECIMAL: case SbxBYREF | SbxDECIMAL: - if( p->pDecimal ) - { - p->pDecimal->getDouble( nRes ); - } - else - { + if (!p->pDecimal || !p->pDecimal->getDouble(nRes)) nRes = 0.0; - } break; case SbxBYREF | SbxSTRING: case SbxSTRING: |