Fix several classes not accepting disposed bitmaps

Fixes an error in Alpha Kimori.
This commit is contained in:
Jonas Kulla 2014-12-22 08:22:45 +01:00
parent 685f8b63b3
commit 11cfe887c2
3 changed files with 6 additions and 3 deletions

View file

@ -727,7 +727,7 @@ void Window::setWindowskin(Bitmap *value)
p->windowskin = value;
if (!value)
if (nullOrDisposed(value))
return;
value->ensureNonMega();
@ -743,7 +743,7 @@ void Window::setContents(Bitmap *value)
p->contents = value;
p->controlsVertDirty = true;
if (!value)
if (nullOrDisposed(value))
return;
value->ensureNonMega();