From 63ad74ab2d0705a987ea341106f1ca25bfee639e Mon Sep 17 00:00:00 2001 From: David Elliott Date: Wed, 9 Jul 2003 14:10:53 +0000 Subject: [PATCH] Remove check for other wxPaintDCs. It should be done in wxWindow instead. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/dcclient.mm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/cocoa/dcclient.mm b/src/cocoa/dcclient.mm index b5da8bd6c3..39e85e4c61 100644 --- a/src/cocoa/dcclient.mm +++ b/src/cocoa/dcclient.mm @@ -61,9 +61,7 @@ wxPaintDC::wxPaintDC(void) wxPaintDC::wxPaintDC( wxWindow *window ) { - wxASSERT_MSG(!sm_focusedDC,"Found another wxDC with focus. Do not use wxPaintDC outside of paint handlers!"); wxASSERT_MSG([NSView focusView]==window->GetNSView(), "PaintDC's NSView does not have focus. Please use wxPaintDC only as the first DC created in a paint handler"); - sm_focusedDC=this; // This transform flips the graphics since wxDC uses top-left origin if(![window->GetNSView() isFlipped]) { @@ -86,7 +84,5 @@ wxPaintDC::wxPaintDC( wxWindow *window ) wxPaintDC::~wxPaintDC(void) { - if(sm_focusedDC==this) - sm_focusedDC=NULL; }; -- 2.45.2