Was acidentally incrementing the counter before requesting the element.

git-svn-id: svn://10.0.0.236/trunk@55063 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
1999-12-02 10:05:17 +00:00
parent 54464ea7ea
commit ce40600633

View File

@@ -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;