Compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-12-08 15:07:25 +00:00
parent 016b064360
commit ce20d822b0

View File

@@ -558,7 +558,7 @@ bool wxMask::Create(const wxBitmap& bitmap, const wxColour& colour)
wxCHECK(maskRep,false);
// We need the source NSBitmapImageRep to detemine its pixel format
NSBitmapImageRep *srcBitmapRep = ((wxBitmapRefData*)bitmap.GetRefData())->m_cocoaNSBitmapImageRep;
NSBitmapImageRep *srcBitmapRep = const_cast<wxBitmap&>(bitmap).GetNSBitmapImageRep();
wxCHECK_MSG(srcBitmapRep,false,"Can't create mask for an uninitialized bitmap");
// Get a pointer to the destination data