Kaydet (Commit) 5f86b4be authored tarafından Eike Rathke's avatar Eike Rathke

added mnStringNoValueError handling to ConvertStringToValue()

Change-Id: I05c2ddc0ebde6675e9f98722c4feb1ed49670dee
üst 4a9c85b3
...@@ -237,10 +237,16 @@ double ScInterpreter::ConvertStringToValue( const String& rStr ) ...@@ -237,10 +237,16 @@ double ScInterpreter::ConvertStringToValue( const String& rStr )
// We keep this code until we provide a friendly way to convert string // We keep this code until we provide a friendly way to convert string
// numbers into numbers in the UI. // numbers into numbers in the UI.
double fValue = 0.0; double fValue = 0.0;
if (mnStringNoValueError == errCellNoValue)
{
// Requested that all strings result in 0, error handled by caller.
SetError( mnStringNoValueError);
return fValue;
}
sal_uInt32 nFIndex = 0; sal_uInt32 nFIndex = 0;
if (!pFormatter->IsNumberFormat(rStr, nFIndex, fValue)) if (!pFormatter->IsNumberFormat(rStr, nFIndex, fValue))
{ {
SetError(errNoValue); SetError( mnStringNoValueError);
fValue = 0.0; fValue = 0.0;
} }
return fValue; return fValue;
......
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