Kaydet (Commit) 37d7d115 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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
üst 187765b8
......@@ -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 ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment