From e638f13ada435f2565f6d6e44fd57e05e7df4e2b Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Wed, 22 Aug 2007 03:25:42 +0000 Subject: [PATCH] When selectedIndex is set, make sure to display the corresponding text in the display area. Bug 330554, r+sr=mats, a=dbaron --- layout/forms/nsComboboxControlFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 2036bc52a0c..1a7c5e8c816 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -916,6 +916,8 @@ nsComboboxControlFrame::GetOptionSelected(PRInt32 aIndex, PRBool* aValue) NS_IMETHODIMP nsComboboxControlFrame::OnSetSelectedIndex(PRInt32 aOldIndex, PRInt32 aNewIndex) { + RedisplayText(aNewIndex); + nsISelectControlFrame* listFrame = nsnull; NS_ASSERTION(mDropdownFrame, "No dropdown frame!");