sc/source/core/tool/interpr4.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 3ed87ba36e59f774917eac49389770da404cbc06 Author: Matti Lehtonen <m-matti-a.lehto...@iki.fi> Date: Sat Oct 7 12:56:38 2017 +0300 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 <er...@redhat.com> Tested-by: Eike Rathke <er...@redhat.com> 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits