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:
parent
acf8e3d29e
commit
336b8a4257
@ -110,7 +110,7 @@ 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)") );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user