fixed NULL problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
05fafecd1a
commit
c03b8ea8cd
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user