diff --git a/samples/png/pngdemo.cpp b/samples/png/pngdemo.cpp index 0106b34ed9..f1e477e5fd 100644 --- a/samples/png/pngdemo.cpp +++ b/samples/png/pngdemo.cpp @@ -171,7 +171,7 @@ void MyCanvas::OnPaint(wxPaintEvent& event) dc.Blit(20 + g_TestBitmap->GetWidth() + 20, 20, g_TestBitmap->GetWidth(), g_TestBitmap->GetHeight(), & memDC, 0, 0, wxCOPY, TRUE); - memDC.SelectObject(NULL); + memDC.SelectObject(wxNullBitmap); } }