diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-25 11:53:18 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-25 11:54:47 -0400 |
commit | 37d7d115dd346ba7a713a5a18d90fc48a0d35072 (patch) | |
tree | ce52574d1e3792a1a2b908a6b3a5e9de9af21df7 /sc | |
parent | 187765b8a45761e14d18da58463dbc0f5bd825e9 (diff) |
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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ; |