]> git.saurik.com Git - wxWidgets.git/commitdiff
10.2 fix for CG
authorRyan Norton <wxprojects@comcast.net>
Mon, 14 Feb 2005 03:46:28 +0000 (03:46 +0000)
committerRyan Norton <wxprojects@comcast.net>
Mon, 14 Feb 2005 03:46:28 +0000 (03:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/bitmap.cpp

index f27549a11afcb9c3bfd0c95503fc573caf73c33c..28c71c4336e53ec727608d6e5f6fd6c5db68ae6e 100644 (file)
@@ -242,7 +242,7 @@ void wxMacReleaseBitmapButton( ControlButtonContentInfo*info )
     {
         ReleaseIconRef(info->u.iconRef) ;
     }
-#if wxMAC_USE_CORE_GRAPHICS
+#if wxMAC_USE_CORE_GRAPHICS && MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2
     else if ( info->contentType == kControlContentCGImageRef )
     {
         CGImageRelease( info->u.imageRef ) ;