git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16295
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
WXPixmap wxBitmap::GetLabelPixmap (WXWidget w)
{
WXPixmap wxBitmap::GetLabelPixmap (WXWidget w)
{
+ if (!M_BITMAPDATA)
+ return (WXPixmap)NULL;
if (M_BITMAPDATA->m_image == (WXPixmap) 0)
return M_BITMAPDATA->m_pixmap;
if (M_BITMAPDATA->m_image == (WXPixmap) 0)
return M_BITMAPDATA->m_pixmap;
WXPixmap wxBitmap::GetInsensPixmap (WXWidget w)
{
Display *dpy = (Display*) M_BITMAPDATA->m_display;
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;
if (M_BITMAPDATA->m_insensPixmap)
return M_BITMAPDATA->m_insensPixmap;