summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/interpr1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 68269a331de9..dfbf8da01dbe 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -6587,7 +6587,7 @@ void ScInterpreter::ScSubTotal()
nFunc -= 100;
}
- if( nFunc < 1 || nFunc > 11 )
+ if (nFunc < 1 || nFunc > 11 || !bIncludeHidden)
PushIllegalArgument(); // simulate return on stack, not SetError(...)
else
{