]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcprint.cpp
guard against nullptr
[wxWidgets.git] / src / os2 / dcprint.cpp
index 0ee065231e88617a3f37543eb303a381983dc6dd..9f3bd395ccddebd9a7da01d86b4c4682beefbf7b 100644 (file)
@@ -261,7 +261,7 @@ void wxPrinterDCImpl::DoDrawBitmap( const wxBitmap& rBmp,
                                     wxCoord WXUNUSED(vY),
                                     bool WXUNUSED(bUseMask))
 {
-    wxCHECK_RET( rBmp.Ok(), _T("invalid bitmap in wxPrinterDC::DrawBitmap") );
+    wxCHECK_RET( rBmp.IsOk(), wxT("invalid bitmap in wxPrinterDC::DrawBitmap") );
 
 //    int                             nWidth  = rBmp.GetWidth();
 //    int                             nHeight = rBmp.GetHeight();