]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix
authorDavid Elliott <dfe@tgwbd.org>
Mon, 8 Dec 2003 15:07:25 +0000 (15:07 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 8 Dec 2003 15:07:25 +0000 (15:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/bitmap.mm

index b630916a41307edeeb870a8241016837722a6115..c73bc16b68526780e79a13a87f51bd9ebb5d0618 100644 (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