Fixed build breakage, passing in wrong variable, and it was uninitialized.

This commit is contained in:
rods%netscape.com 1999-08-06 21:45:14 +00:00
parent 38516f87ef
commit 40289849e0
2 changed files with 2 additions and 2 deletions

View File

@ -4315,7 +4315,7 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
(void**)getter_AddRefs(selectElement));
if (NS_SUCCEEDED(res) && selectElement) {
nsCOMPtr<nsIContent> childContent;
aContainer->ChildAt(i, *getter_AddRefs(childContent));
aContainer->ChildAt(aNewIndexInContainer, *getter_AddRefs(childContent));
if (childContent) {
RemoveDummyFrameFromSelect(aPresContext, shell, aContainer, childContent, selectElement);
}

View File

@ -4315,7 +4315,7 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
(void**)getter_AddRefs(selectElement));
if (NS_SUCCEEDED(res) && selectElement) {
nsCOMPtr<nsIContent> childContent;
aContainer->ChildAt(i, *getter_AddRefs(childContent));
aContainer->ChildAt(aNewIndexInContainer, *getter_AddRefs(childContent));
if (childContent) {
RemoveDummyFrameFromSelect(aPresContext, shell, aContainer, childContent, selectElement);
}