diff --git a/accessible/src/atk/nsXULTreeAccessibleWrap.cpp b/accessible/src/atk/nsXULTreeAccessibleWrap.cpp index 99a5533319e..9ae3bbf40cc 100644 --- a/accessible/src/atk/nsXULTreeAccessibleWrap.cpp +++ b/accessible/src/atk/nsXULTreeAccessibleWrap.cpp @@ -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;