]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed NULL problem
authorKarsten Ballüder <ballueder@usa.net>
Mon, 8 Jun 1998 11:37:30 +0000 (11:37 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Mon, 8 Jun 1998 11:37:30 +0000 (11:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/png/pngdemo.cpp

index f1e477e5fd80744f3cb79ce1a1df9875a57d9441..ed0c27b7747b1074f54bcdf657a4e9a0279d559e 100644 (file)
@@ -159,7 +159,7 @@ void MyCanvas::OnPaint(wxPaintEvent& event)
     // Normal, non-transparent blitting
     dc.Blit(20, 20, g_TestBitmap->GetWidth(), g_TestBitmap->GetHeight(), & memDC, 0, 0, wxCOPY, FALSE);
 
-    memDC.SelectObject(NULL);
+    memDC.SelectObject(wxNullBitmap);
   }
 
   if ( g_TestBitmap && g_TestBitmap->Ok() )