]> git.saurik.com Git - wxWidgets.git/commitdiff
Set m_window instead of using wxWindowDC constructor taking a wxWindow
authorDavid Elliott <dfe@tgwbd.org>
Wed, 9 Jul 2003 15:26:41 +0000 (15:26 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Wed, 9 Jul 2003 15:26:41 +0000 (15:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/dcclient.mm

index b1c9429f9a85f2887d8ddebb4030018548704af6..430f225b10b21ddd0031ddbe5dbe50b8b35c537b 100644 (file)
@@ -45,8 +45,8 @@ wxClientDC::wxClientDC(void)
 };
 
 wxClientDC::wxClientDC( wxWindow *window )
-:   wxWindowDC(window)
 {
+    m_window = window;
 };
 
 wxClientDC::~wxClientDC(void)
@@ -63,8 +63,8 @@ wxPaintDC::wxPaintDC(void)
 };
 
 wxPaintDC::wxPaintDC( wxWindow *window )
-:   wxWindowDC(window)
 {
+    m_window = window;
     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");
     // This transform flips the graphics since wxDC uses top-left origin
     if(![window->GetNSView() isFlipped])