]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/graphicc.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / generic / graphicc.cpp
index dfc35238f398bd7e127f8dc8f7e06b78c6d5ee75..5e7da3dcba2654ae70349dea4a19e51820e43c1d 100644 (file)
@@ -1404,7 +1404,7 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, const wxBitm
     // fully transparent or fully opaque
     if (bmpSource.GetMask())
     {
-        wxBitmap bmpMask = bmpSource.GetMaskBitmap();
+        wxBitmap bmpMask = bmpSource.GetMask()->GetBitmap();
         bufferFormat = CAIRO_FORMAT_ARGB32;
         data = (wxUint32*)m_buffer;
         wxNativePixelData