From ce20d822b0e486fff1b6368e9be3eeb1a74d8589 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 8 Dec 2003 15:07:25 +0000 Subject: [PATCH] Compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/bitmap.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa/bitmap.mm b/src/cocoa/bitmap.mm index b630916a41..c73bc16b68 100644 --- a/src/cocoa/bitmap.mm +++ b/src/cocoa/bitmap.mm @@ -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(bitmap).GetNSBitmapImageRep(); wxCHECK_MSG(srcBitmapRep,false,"Can't create mask for an uninitialized bitmap"); // Get a pointer to the destination data -- 2.45.2