fdo#77307: Compare external formula tokens correctly.

To avoid different external (add-in) tokens from being evaluated equal.

Change-Id: If78187901bdca7fe0da50442b0bb66e0650dc70f
This commit is contained in:
Kohei Yoshida
2014-04-11 21:37:54 -04:00
parent d5d43b2d8d
commit f9cc0daec2

View File

@@ -3641,6 +3641,15 @@ ScFormulaCell::CompareState ScFormulaCell::CompareByTokenArray( ScFormulaCell& r
return NotEqual;
}
break;
case formula::svExternal:
{
if (pThisTok->GetExternal() != pOtherTok->GetExternal())
return NotEqual;
if (pThisTok->GetByte() != pOtherTok->GetByte())
return NotEqual;
}
break;
default:
;
}