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:
Vadim Zeitlin
2003-08-02 00:15:55 +00:00
parent 435bc10c9c
commit fbaf7d1421

View File

@@ -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;