diff --git a/content/html/content/src/nsHTMLOptionElement.cpp b/content/html/content/src/nsHTMLOptionElement.cpp index 7500c0c05a16..4f7ae53b27fa 100644 --- a/content/html/content/src/nsHTMLOptionElement.cpp +++ b/content/html/content/src/nsHTMLOptionElement.cpp @@ -267,9 +267,8 @@ NS_IMETHODIMP nsHTMLOptionElement::SetSelectedInternal(PRBool aValue, PRBool aNotify) { mIsInitialized = PR_TRUE; + // This affects the display, but what the hey, it's a good place for it - PRInt32 ind; - GetIndex(&ind); if (aValue) { return SetAttr(kNameSpaceID_None, nsLayoutAtoms::optionSelectedPseudo,