summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinfried Donkers <winfrieddonkers@libreoffice.org>2015-02-11 09:32:09 +0100
committerEike Rathke <erack@redhat.com>2015-02-11 13:34:49 +0000
commit0b75eda1090f92adc678ceff2565da2dc7d9328c (patch)
tree86ec4685c37d06d6aa3064435451920ec99be19d
parentd87ecd2566368b8ccdf43db09425093fff343922 (diff)
tdf#88576 fix handling of empty arguments in IF(), IFERROR() and IFNA()
Change-Id: I8acca26cf7398768a9e25f97f3a9e61754ab2179 Reviewed-on: https://gerrit.libreoffice.org/14415 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/core/tool/interpr4.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index fea7e6e44ab7..e3c48d6e3217 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -3028,7 +3028,10 @@ void ScInterpreter::ScExternal()
void ScInterpreter::ScMissing()
{
- PushTempToken( new FormulaMissingToken );
+ if ( aCode.IsEndOfPath() )
+ PushTempToken( new ScEmptyCellToken( false, false ) );
+ else
+ PushTempToken( new FormulaMissingToken );
}
#if HAVE_FEATURE_SCRIPTING