[Libreoffice-commits] .: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Sep 25 17:36:26 PDT 2012


 sc/source/core/tool/interpr1.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ceffb55cd53bcae4ec6f1b967ff45d01207a004e
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Tue Sep 25 20:35:24 2012 -0400

    Use this flag to make the compiler warning go away.
    
    Incidentally, when the flag is false we'll throw an argument error.
    We need to implement it properly later.
    
    Change-Id: I70f8b6bac3cf8ad1dae67efc65a9ab16e099253e

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 68269a3..dfbf8da 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
         {


More information about the Libreoffice-commits mailing list