X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/acf8e3d29e897ade2087e3d9048e5c448823d391..336b8a4257b2723804ed6aa5a033e86b7edb8dad:/src/msw/dcmemory.cpp diff --git a/src/msw/dcmemory.cpp b/src/msw/dcmemory.cpp index 744f2ae65a..7a2de900bf 100644 --- a/src/msw/dcmemory.cpp +++ b/src/msw/dcmemory.cpp @@ -110,9 +110,9 @@ void wxMemoryDC::SelectObject(const wxBitmap& bitmap) } // check for whether the bitmap is already selected into a device context - wxCHECK_RET( !bitmap.GetSelectedInto() || - (bitmap.GetSelectedInto() == this), - wxT("Bitmap is selected in another wxMemoryDC, delete the first wxMemoryDC or use SelectObject(NULL)") ); + wxASSERT_MSG( !bitmap.GetSelectedInto() || + (bitmap.GetSelectedInto() == this), + wxT("Bitmap is selected in another wxMemoryDC, delete the first wxMemoryDC or use SelectObject(NULL)") ); m_selectedBitmap = bitmap; WXHBITMAP hBmp = m_selectedBitmap.GetHBITMAP();