Kaydet (Commit) d6b10909 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

bail out for error cells early

Change-Id: I36581f3b735008dbba6eea5808da654eb8b279e3
üst 64223bda
......@@ -674,22 +674,22 @@ static const char* lcl_GetErrorString( sal_uInt16 nScErrCode )
void XclXmlUtils::GetFormulaTypeAndValue( ScFormulaCell& rCell, const char*& rsType, OUString& rsValue )
{
sal_uInt16 nScErrCode = rCell.GetErrCode();
if( nScErrCode )
{
rsType = "e";
rsValue = ToOUString( lcl_GetErrorString( nScErrCode ) );
return;
}
switch( rCell.GetFormatType() )
{
case NUMBERFORMAT_NUMBER:
{
// either value or error code
sal_uInt16 nScErrCode = rCell.GetErrCode();
if( nScErrCode )
{
rsType = "e";
rsValue = ToOUString( lcl_GetErrorString( nScErrCode ) );
}
else
{
rsType = "n";
rsValue = OUString::valueOf( rCell.GetValue() );
}
rsType = "n";
rsValue = OUString::valueOf( rCell.GetValue() );
}
break;
......
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