Was acidentally incrementing the counter before requesting the element.

This commit is contained in:
tbogard@aol.net
1999-12-02 10:05:17 +00:00
parent 29a95d420c
commit 405a610969

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;