Don't use mFirstChild when the child count is zero. b=381057 r=aaronleventhal

This commit is contained in:
mats.palmgren@bredband.net 2007-05-20 01:05:42 -07:00
parent 477bab1e68
commit f09fd19a6c

View File

@ -64,7 +64,7 @@ NS_IMETHODIMP nsXULTreeAccessibleWrap::GetChildCount(PRInt32 *aAccChildCount)
// by going through DOM structure of XUL tree
nsAccessible::GetChildCount(aAccChildCount);
if (*aAccChildCount != eChildCountUninitialized) {
if (*aAccChildCount != 0 && *aAccChildCount != eChildCountUninitialized) {
// add the count of table cell (or tree item) accessibles, which are
// created and appended by XUL tree accessible implementation
PRInt32 rowCount, colCount = 1;