mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 13:54:27 +00:00
Fix crash when image not loaded yet
This commit is contained in:
parent
44c72dc670
commit
1016a1fe0e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user