summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-07-10 16:13:40 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-07-10 16:25:14 +0000
commitbe91c2086afef99dc9569ac6aa4835c5072bffdf (patch)
tree8e2e4b7ed35225c08f379af7e46fb86aaa0a04b0
parentc65aa400296a1a1b59b43223bdac030c749e51e3 (diff)
resolved fdo#80195 act on implicitly propagated error, if any
Change-Id: I1d5a55a14fc3e25edc2cddec5b53ed2afa96bd3e (cherry picked from commit 1093b900b43d819c9a730ef6435fed0f3687a085) Reviewed-on: https://gerrit.libreoffice.org/10196 Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/tool/interpr1.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 8c86e56a7839..493080a272cd 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -255,6 +255,11 @@ void ScInterpreter::ScIfError( bool bNAonly )
{
default:
Pop();
+ // Act on implicitly propagated error, if any.
+ if (nOldGlobalError)
+ nGlobalError = nOldGlobalError;
+ if (nGlobalError)
+ bError = true;
break;
case svError:
PopError();