From 306c6b161e00ab87cc880acb78e750c1493126a6 Mon Sep 17 00:00:00 2001 From: "mats.palmgren@bredband.net" Date: Sun, 20 May 2007 01:05:42 -0700 Subject: [PATCH] Don't use mFirstChild when the child count is zero. b=381057 r=aaronleventhal --- accessible/src/atk/nsXULTreeAccessibleWrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessible/src/atk/nsXULTreeAccessibleWrap.cpp b/accessible/src/atk/nsXULTreeAccessibleWrap.cpp index 99a5533319e9..9ae3bbf40cc0 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;