Commit 284874c1 authored by kmcclusk%netscape.com's avatar kmcclusk%netscape.com
Browse files

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

on www.city.net
parent e5596bb3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1140,7 +1140,7 @@ NS_IMETHODIMP nsSelectControlFrame::SetProperty(nsIAtom* aName, const nsString&

NS_IMETHODIMP nsSelectControlFrame::GetProperty(nsIAtom* aName, nsString& aValue)
{

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