git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22467
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+// TODO: don't duplicate wxPaintDC code here!!
+
wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
{
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") );