From ce40600633f13af7c68abcee1837dc03195be6ab Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Thu, 2 Dec 1999 10:05:17 +0000 Subject: [PATCH] Was acidentally incrementing the counter before requesting the element. git-svn-id: svn://10.0.0.236/trunk@55063 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 9b6c6925ab8..75eb215f701 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -990,7 +990,7 @@ NS_IMETHODIMP nsDocShell::FocusAvailable(nsIBaseWindow* aCurrentFocus, { while(++i < n) { - child = do_QueryInterface((nsISupports*)mChildren.ElementAt(++i)); + child = do_QueryInterface((nsISupports*)mChildren.ElementAt(i)); if(NS_SUCCEEDED(child->SetFocus())) { *aTookFocus = PR_TRUE;