X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a367b9b3f8a722d6029e209070be11d120be0180..f60d0f944a6ce86bce59901e7ea3811f0992bce7:/src/msw/bitmap.cpp diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 6949e0783a..264bb3359e 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -78,6 +78,7 @@ wxBitmapRefData::~wxBitmapRefData(void) if (m_bitmapMask) delete m_bitmapMask; m_bitmapMask = NULL; + } wxList wxBitmap::sm_handlers; @@ -405,9 +406,9 @@ wxBitmap wxBitmap::GetBitmapForDC(wxDC& dc) const */ if( this->GetPalette() && this->GetPalette()->Ok() && (this->GetPalette()->GetHPALETTE() != 0) ) { - tmpBitmap.SetPalette(this->GetPalette()); + tmpBitmap.SetPalette(* this->GetPalette()); memDC.SelectObject(tmpBitmap); - memDC.SetPalette(this->GetPalette()); + memDC.SetPalette(* this->GetPalette()); hPal = (HPALETTE) this->GetPalette()->GetHPALETTE(); } else