X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/917b3d40f2da1f02a81cbe385118a504072c401c..bea74fbbebd7d859d94c803c1e0de3c8751a434b:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index 153472c88d..714750f706 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -1485,7 +1485,7 @@ wxImage::wxImage( const wxBitmap &bitmap ) vi = XGetVisualInfo( dpy, VisualIDMask|VisualDepthMask, &vinfo_template, &nitem ); - wxCHECK_MSG( vi, wxNullBitmap, _T("no visual") ); + wxCHECK_RET( vi, _T("no visual") ); if ((bpp == 16) && (vi->red_mask != 0xf800)) bpp = 15;