[Libreoffice-commits] core.git: sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Fri Apr 25 08:54:38 PDT 2014


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

New commits:
commit 37d7d115dd346ba7a713a5a18d90fc48a0d35072
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Fri Apr 25 11:53:18 2014 -0400

    fdo#75971: Perhaps this will prevent the crash ?
    
    I can't reproduce the crash, so this is just a blind fix based on Julien's
    input.
    
    Change-Id: If4d20632dc1ce0671a755dd6dd31194702a95bf3

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index b2a77b2..0b523e8 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -7889,7 +7889,7 @@ void ScInterpreter::ScLeft()
         if (nParamCount == 2)
         {
             double nVal = ::rtl::math::approxFloor(GetDouble());
-            if ( nVal < 0.0 || nVal > SAL_MAX_UINT16 )
+            if (rtl::math::isNan(nVal) || nVal < 0.0 || nVal > SAL_MAX_UINT16)
             {
                 PushIllegalArgument();
                 return ;


More information about the Libreoffice-commits mailing list