]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dataobj.cpp
no significant changes
[wxWidgets.git] / src / gtk1 / dataobj.cpp
index cae5a43dfb53ba577c3a9f37eb1fd1704e8bc568..cfbf0deb8ac26dcbb17e949c212d5472c7657588 100644 (file)
@@ -358,7 +358,7 @@ void wxBitmapDataObject::DoConvertToPng()
     wxCHECK_RET( wxImage::FindHandler(wxBITMAP_TYPE_PNG) != NULL,
                  wxT("You must call wxImage::AddHandler(new wxPNGHandler); to be able to use clipboard with bitmaps!") );
 
-    wxImage image(m_bitmap);
+    wxImage image = m_bitmap.ConvertToImage();
 
     wxCountingOutputStream count;
     image.SaveFile(count, wxBITMAP_TYPE_PNG);