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

bail out for error cells early

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