added #ifdef XP_PC in nsSelectControlFrame::GetProperty to fix MAC crash

on www.city.net
This commit is contained in:
kmcclusk%netscape.com 1999-02-17 01:24:16 +00:00
Родитель a4ae6f94b8
Коммит 3237d4791e
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1140,7 +1140,7 @@ NS_IMETHODIMP nsSelectControlFrame::SetProperty(nsIAtom* aName, const nsString&
NS_IMETHODIMP nsSelectControlFrame::GetProperty(nsIAtom* aName, nsString& aValue) NS_IMETHODIMP nsSelectControlFrame::GetProperty(nsIAtom* aName, nsString& aValue)
{ {
#ifdef XP_PC
// Get the selected value of option from local cache (optimization vs. widget) // Get the selected value of option from local cache (optimization vs. widget)
if (nsHTMLAtoms::selected == aName) { if (nsHTMLAtoms::selected == aName) {
PRInt32 error = 0; PRInt32 error = 0;
@ -1183,5 +1183,6 @@ NS_IMETHODIMP nsSelectControlFrame::GetProperty(nsIAtom* aName, nsString& aValue
} else { } else {
return nsFormControlFrame::GetProperty(aName, aValue); return nsFormControlFrame::GetProperty(aName, aValue);
} }
#endif
return NS_OK; return NS_OK;
} }