From 1017e09c220dee8ec5881de064fa2ebb052cc3a2 Mon Sep 17 00:00:00 2001 From: "mats.palmgren%bredband.net" Date: Sun, 20 May 2007 08:05:42 +0000 Subject: [PATCH] Don't use mFirstChild when the child count is zero. b=381057 r=aaronleventhal git-svn-id: svn://10.0.0.236/trunk@226662 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/accessible/src/atk/nsXULTreeAccessibleWrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/accessible/src/atk/nsXULTreeAccessibleWrap.cpp b/mozilla/accessible/src/atk/nsXULTreeAccessibleWrap.cpp index 99a5533319e..9ae3bbf40cc 100644 --- a/mozilla/accessible/src/atk/nsXULTreeAccessibleWrap.cpp +++ b/mozilla/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;