summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-01-08 03:09:34 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-01-08 04:22:56 +0100
commitc93098a391fc46f53468ef01a059c17d4f3673ee (patch)
tree5fe3e1c7310dffb05f53c1cd53e15c235026ed74 /sc/source
parente2222714bccd83df43a98963e26a85b9d5e28a6c (diff)
return earlier from ScInterpreter::GetDBParams on error, fdo#44442
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/tool/interpr1.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index dcdc5fe74fbb..8b359aacd35e 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -6609,6 +6609,9 @@ ScDBQueryParamBase* ScInterpreter::GetDBParams( bool& rMissingField )
SetError( errIllegalParameter );
}
+ if (nGlobalError)
+ return NULL;
+
SAL_WNODEPRECATED_DECLARATIONS_PUSH
auto_ptr<ScDBRangeBase> pDBRef( PopDBDoubleRef() );
SAL_WNODEPRECATED_DECLARATIONS_POP