X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e99520bd3fc092bbbcbc38bb699a0236618ea40..19e30148e18cc99296b26503c155e5cef59045f4:/src/os2/dataobj.cpp?ds=sidebyside diff --git a/src/os2/dataobj.cpp b/src/os2/dataobj.cpp index 3763a035a1..b6738a028d 100644 --- a/src/os2/dataobj.cpp +++ b/src/os2/dataobj.cpp @@ -323,7 +323,7 @@ bool wxBitmapDataObject::SetData( return FALSE; } - m_bitmap = vImage.ConvertToBitmap(); + m_bitmap = wxBitmap(vImage); #endif //wxUSE_STREAMS return m_bitmap.Ok(); @@ -335,7 +335,7 @@ void wxBitmapDataObject::DoConvertToPng() return; #if wxUSE_STREAMS - wxImage vImage(m_bitmap); + wxImage vImage = m_bitmap.ConvertToImage(); wxPNGHandler vHandler; wxCountingOutputStream vCount;