don't use GetSelectedInto() in release build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-03-04 02:14:13 +00:00
parent acf8e3d29e
commit 336b8a4257

View File

@ -110,9 +110,9 @@ void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
} }
// check for whether the bitmap is already selected into a device context // check for whether the bitmap is already selected into a device context
wxCHECK_RET( !bitmap.GetSelectedInto() || wxASSERT_MSG( !bitmap.GetSelectedInto() ||
(bitmap.GetSelectedInto() == this), (bitmap.GetSelectedInto() == this),
wxT("Bitmap is selected in another wxMemoryDC, delete the first wxMemoryDC or use SelectObject(NULL)") ); wxT("Bitmap is selected in another wxMemoryDC, delete the first wxMemoryDC or use SelectObject(NULL)") );
m_selectedBitmap = bitmap; m_selectedBitmap = bitmap;
WXHBITMAP hBmp = m_selectedBitmap.GetHBITMAP(); WXHBITMAP hBmp = m_selectedBitmap.GetHBITMAP();