From 37d7d115dd346ba7a713a5a18d90fc48a0d35072 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 25 Apr 2014 11:53:18 -0400 Subject: 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 --- sc/source/core/tool/interpr1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index b2a77b282e18..0b523e86b033 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 ; -- cgit v1.2.3