fix for stupid segfault

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-12-15 23:18:31 +00:00
parent c1725ec7f3
commit 65d48d095f

View File

@@ -44,11 +44,11 @@ wxMemoryDC::~wxMemoryDC()
void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
{
SetMGLDC(NULL, TRUE);
m_selected = bitmap;
if ( bitmap.Ok() )
{
m_selected = bitmap;
SetMGLDC(m_selected.CreateTmpDC(), TRUE);
}
}
void wxMemoryDC::SetPen(const wxPen &pen)