X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..b954afc925448455b32dda53bc2c274bac6d2582:/src/dfb/dcmemory.cpp?ds=sidebyside diff --git a/src/dfb/dcmemory.cpp b/src/dfb/dcmemory.cpp index 435667e3cd..bb9171db67 100644 --- a/src/dfb/dcmemory.cpp +++ b/src/dfb/dcmemory.cpp @@ -49,6 +49,8 @@ wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) void wxMemoryDC::SelectObject(const wxBitmap& bitmap) { + m_bmp = bitmap; + if ( !bitmap.Ok() ) { // select the bitmap out of the DC