replaced an #ifdef __WXDEBUG__ with a wxCHECK (this is what we have it for...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -310,15 +310,11 @@ WXHDC wxPaintDC::FindDCInCache(wxWindow* win)
|
||||
* wxPaintDCEx
|
||||
*/
|
||||
|
||||
// TODO: don't duplicate wxPaintDC code here!!
|
||||
|
||||
wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
|
||||
{
|
||||
#ifdef __WXDEBUG__
|
||||
if ( !dc )
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxPaintDCEx requires an existing device context") );
|
||||
return;
|
||||
}
|
||||
#endif // __WXDEBUG__
|
||||
wxCHECK_RET( dc, wxT("wxPaintDCEx requires an existing device context") );
|
||||
|
||||
m_canvas = canvas;
|
||||
|
||||
|
Reference in New Issue
Block a user