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:
@@ -44,11 +44,11 @@ wxMemoryDC::~wxMemoryDC()
|
|||||||
|
|
||||||
void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
|
void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
|
||||||
{
|
{
|
||||||
SetMGLDC(NULL, TRUE);
|
|
||||||
m_selected = bitmap;
|
|
||||||
|
|
||||||
if ( bitmap.Ok() )
|
if ( bitmap.Ok() )
|
||||||
|
{
|
||||||
|
m_selected = bitmap;
|
||||||
SetMGLDC(m_selected.CreateTmpDC(), TRUE);
|
SetMGLDC(m_selected.CreateTmpDC(), TRUE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxMemoryDC::SetPen(const wxPen &pen)
|
void wxMemoryDC::SetPen(const wxPen &pen)
|
||||||
|
Reference in New Issue
Block a user