Bug 583952 - fix 2 - Crash [@ nsAccUtils::GetHeaderCellsFor]; r=marcoz,surkov a=davidb

This commit is contained in:
David Bolter 2010-08-24 09:38:31 -04:00
parent 922d8c16c6
commit 12ccffad47

View File

@ -745,6 +745,9 @@ nsAccUtils::GetHeaderCellsFor(nsIAccessibleTable *aTable,
nsCOMPtr<nsIAccessibleTableCell> tableCellAcc =
do_QueryInterface(cell);
// GetCellAt should always return an nsIAccessibleTableCell (XXX Bug 587529)
NS_ENSURE_STATE(tableCellAcc);
PRInt32 origIdx = 1;
if (moveToLeft)
rv = tableCellAcc->GetColumnIndex(&origIdx);