X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/474cd9165812067985d957c82138fa9ac3cf218a..7e48d7d9fb4b546e6a68239e8a77ce7ef79df3b0:/src/motif/bitmap.cpp diff --git a/src/motif/bitmap.cpp b/src/motif/bitmap.cpp index 9e5d80983e..fe00dc46fa 100644 --- a/src/motif/bitmap.cpp +++ b/src/motif/bitmap.cpp @@ -829,6 +829,8 @@ void wxBitmap::InitStandardHandlers() WXPixmap wxBitmap::GetLabelPixmap (WXWidget w) { + if (!M_BITMAPDATA) + return (WXPixmap)NULL; if (M_BITMAPDATA->m_image == (WXPixmap) 0) return M_BITMAPDATA->m_pixmap; @@ -905,7 +907,9 @@ WXPixmap wxBitmap::GetArmPixmap (WXWidget w) WXPixmap wxBitmap::GetInsensPixmap (WXWidget w) { Display *dpy = (Display*) M_BITMAPDATA->m_display; - + + if (!M_BITMAPDATA) + return (WXPixmap)NULL; if (M_BITMAPDATA->m_insensPixmap) return M_BITMAPDATA->m_insensPixmap;