]> git.saurik.com Git - wxWidgets.git/commitdiff
adaptions for latest dc changes
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 30 Nov 2007 16:43:39 +0000 (16:43 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 30 Nov 2007 16:43:39 +0000 (16:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dcmemory.cpp

index 37605f4750d2702adbffbbc3844ff3410f56e930..1ad90bbb837e0b5da9dea832b1484548d0bcbb82 100644 (file)
@@ -115,7 +115,7 @@ void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap )
 
     // check for whether the bitmap is already selected into a device context
     wxASSERT_MSG( !bitmap.GetSelectedInto() ||
-                  (bitmap.GetSelectedInto() == this),
+                  (bitmap.GetSelectedInto() == GetOwner()),
                   wxT("Bitmap is selected in another wxMemoryDC, delete the first wxMemoryDC or use SelectObject(NULL)") );
 
     m_selectedBitmap = bitmap;
@@ -124,7 +124,7 @@ void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap )
         return;
 
 #ifdef __WXDEBUG__
-    m_selectedBitmap.SetSelectedInto(this);
+    m_selectedBitmap.SetSelectedInto(GetOwner());
 #endif
     hBmp = (WXHBITMAP)::SelectObject(GetHdc(), (HBITMAP)hBmp);