]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use GetSelectedInto() in release build
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Mar 2003 02:14:13 +0000 (02:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Mar 2003 02:14:13 +0000 (02:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dcmemory.cpp

index 744f2ae65a3c46dd335ca597a6d719713d508258..7a2de900bf59a8d8ca02ccf9d1042569aad6fdb3 100644 (file)
@@ -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();