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

New commits:
commit 37d7d115dd346ba7a713a5a18d90fc48a0d35072
Author: Kohei Yoshida <kohei.yosh...@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 ;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to