X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e99520bd3fc092bbbcbc38bb699a0236618ea40..a336f999c2c432b1fc6c6324a70bdaab02c0886e:/src/os2/dataobj.cpp 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;