Backing out one line from the previous checkin in order to fix #24344 ("Crash when displaying a list box").

This commit is contained in:
pierre%netscape.com 2000-01-19 12:27:40 +00:00
parent afa4a1dd4e
commit bf96114107
2 changed files with 2 additions and 2 deletions

View File

@ -1427,7 +1427,7 @@ nsListControlFrame::SetContentSelected(PRInt32 aIndex, PRBool aSelected)
if (aSelected) { if (aSelected) {
DisplaySelected(content); DisplaySelected(content);
// Now that it is selected scroll to it // Now that it is selected scroll to it
nsCOMPtr<nsIContent> content(do_QueryInterface(content)); // nsCOMPtr<nsIContent> content(do_QueryInterface(content));
if (content) { if (content) {
ScrollToFrame(content); ScrollToFrame(content);
} }

View File

@ -1427,7 +1427,7 @@ nsListControlFrame::SetContentSelected(PRInt32 aIndex, PRBool aSelected)
if (aSelected) { if (aSelected) {
DisplaySelected(content); DisplaySelected(content);
// Now that it is selected scroll to it // Now that it is selected scroll to it
nsCOMPtr<nsIContent> content(do_QueryInterface(content)); // nsCOMPtr<nsIContent> content(do_QueryInterface(content));
if (content) { if (content) {
ScrollToFrame(content); ScrollToFrame(content);
} }