[Libreoffice-commits] core.git: sc/source
Matti Lehtonen
m-Matti-a.Lehtonen at IKI.Fi
Mon Nov 20 16:08:32 UTC 2017
sc/source/core/tool/interpr4.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 3ed87ba36e59f774917eac49389770da404cbc06
Author: Matti Lehtonen <m-Matti-a.Lehtonen at 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 <erack at redhat.com>
Tested-by: Eike Rathke <erack at 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;
}
More information about the Libreoffice-commits
mailing list