]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/utils.cpp
don't compute (and mainly don't cache) our best size until we have created the radio...
[wxWidgets.git] / src / motif / utils.cpp
index 84bc1a6d9a527152998628c5d26243911d841e32..c3b452d42b46ec1e82c17fa6aac1fca3a9cb5bef 100644 (file)
@@ -971,7 +971,7 @@ wxBitmap wxCreateMaskedBitmap(const wxBitmap& bitmap, const wxColour& colour)
     wxMemoryDC destDC;
     wxMemoryDC srcDC;
 
-    srcDC.SelectObject(bitmap);
+    srcDC.SelectObjectAsSource(bitmap);
     destDC.SelectObject(newBitmap);
 
     wxBrush brush(colour, wxSOLID);