corrected serious bug in SetHBITMAP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
efba2b89f1
commit
228de783a9
@ -352,9 +352,10 @@ void wxBitmap::SetMask(wxMask *mask)
|
||||
void wxBitmap::SetHBITMAP(WXHBITMAP bmp)
|
||||
{
|
||||
if (!M_BITMAPDATA)
|
||||
m_refData = new wxBitmapRefData;
|
||||
m_refData = new wxBitmapRefData;
|
||||
|
||||
M_BITMAPDATA->m_hBitmap = bmp;
|
||||
M_BITMAPDATA->m_ok = bmp != 0;
|
||||
}
|
||||
|
||||
void wxBitmap::AddHandler(wxBitmapHandler *handler)
|
||||
|
Loading…
Reference in New Issue
Block a user