]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dragimgg.cpp
fix for toolbar radio buttons event generation
[wxWidgets.git] / src / generic / dragimgg.cpp
index e7632a737c9166d9318728274660081d07d3c6eb..c1e5edca9de2e85b4a3821ce0352b89b2f601c46 100644 (file)
@@ -164,9 +164,9 @@ bool wxGenericDragImage::Create(const wxString& str, const wxCursor& cursor)
 
 #if wxUSE_IMAGE_IN_DRAGIMAGE
     // Make the bitmap masked
-    wxImage image(bitmap);
+    wxImage image = bitmap.ConvertToImage();
     image.SetMaskColour(255, 255, 255);
-    bitmap = image.ConvertToBitmap();
+    bitmap = wxBitmap(image);
 #endif
 
     return Create(bitmap, cursor);