Fix crash when image not loaded yet

This commit is contained in:
spider%netscape.com 1998-11-06 01:24:09 +00:00
parent 44c72dc670
commit 1016a1fe0e

View File

@ -190,7 +190,7 @@ nsresult nsImageButton::SetBounds(const nsRect &aBounds)
//------------------------------------------------------------
nsIImageRequest * nsImageButton::GetImageForPainting()
{
nsIImageRequest * img;
nsIImageRequest * img = nsnull;
if ((mState & eButtonState_pressed) && (mPressedImageRequest != nsnull))
img = mPressedImageRequest;