diff options
author | Matti Lehtonen <m-Matti-a.Lehtonen@IKI.Fi> | 2017-10-07 12:56:38 +0300 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-11-20 17:08:05 +0100 |
commit | 3ed87ba36e59f774917eac49389770da404cbc06 (patch) | |
tree | 26e582ec05501c0810ae512ed1e8be6dd89ab15b | |
parent | 66dbd4da3afcadb1393daf9be9cecff71b86509a (diff) |
tdf#89216 forward empty cells as empty to BASIC instead of 0.0
This change causes that either empty or unknown cells are forwarded to macros
as empty, not as zero (double).
Change-Id: Ia73bcb2ab48e08f97b46cdb45ae4dc3d21bbffd5
Reviewed-on: https://gerrit.libreoffice.org/43226
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | sc/source/core/tool/interpr4.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index 6a05c5c22795..7285d83b9beb 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -3544,11 +3544,12 @@ bool ScInterpreter::SetSbxVariable( SbxVariable* pVar, const ScAddress& rPos ) } break; default : - pVar->PutDouble( 0.0 ); + pVar->PutEmpty(); } } else - pVar->PutDouble( 0.0 ); + pVar->PutEmpty(); + return bOk; } |