do not override nGlobalError with error from ConvertStringToValue()
... so an already existing previous error is kept. Change-Id: Ie731f17e93afa512542cc3ba2378031e978f9462
This commit is contained in:
@@ -187,10 +187,11 @@ sal_uInt16 ScInterpreter::GetCellErrCode( const ScRefCellValue& rCell )
|
|||||||
|
|
||||||
double ScInterpreter::ConvertStringToValue( const OUString& rStr )
|
double ScInterpreter::ConvertStringToValue( const OUString& rStr )
|
||||||
{
|
{
|
||||||
double fValue = ScGlobal::ConvertStringToValue( rStr, maCalcConfig, nGlobalError, mnStringNoValueError,
|
sal_uInt16 nError = 0;
|
||||||
|
double fValue = ScGlobal::ConvertStringToValue( rStr, maCalcConfig, nError, mnStringNoValueError,
|
||||||
pFormatter, nCurFmtType);
|
pFormatter, nCurFmtType);
|
||||||
if (nGlobalError)
|
if (nError)
|
||||||
SetError(nGlobalError);
|
SetError(nError);
|
||||||
return fValue;
|
return fValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user