Commented out the reset of the list when an option gets added

Fixes crashers 17836, 17852, 17965 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@52817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com 1999-11-04 22:45:10 +00:00
parent 451b1f9771
commit e34b01ce89
2 changed files with 4 additions and 2 deletions

View File

@ -1679,7 +1679,8 @@ nsListControlFrame::AddOption(nsIPresContext* aPresContext, PRInt32 aIndex)
PRBool selected = PR_FALSE;
option->GetDefaultSelected(&selected);
if (selected) {
Reset(aPresContext); // this sets mSelectedIndex to the defaulted selection
// XXX this is very bad to here
//Reset(aPresContext); // this sets mSelectedIndex to the defaulted selection
wasReset = PR_TRUE;
}
NS_RELEASE(option);

View File

@ -1679,7 +1679,8 @@ nsListControlFrame::AddOption(nsIPresContext* aPresContext, PRInt32 aIndex)
PRBool selected = PR_FALSE;
option->GetDefaultSelected(&selected);
if (selected) {
Reset(aPresContext); // this sets mSelectedIndex to the defaulted selection
// XXX this is very bad to here
//Reset(aPresContext); // this sets mSelectedIndex to the defaulted selection
wasReset = PR_TRUE;
}
NS_RELEASE(option);