]> git.saurik.com Git - wxWidgets.git/commitdiff
more wxUSE_IMAGE FUN
authorRyan Norton <wxprojects@comcast.net>
Tue, 1 Mar 2005 10:23:45 +0000 (10:23 +0000)
committerRyan Norton <wxprojects@comcast.net>
Tue, 1 Mar 2005 10:23:45 +0000 (10:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/icon.cpp

index 2317c911e58f29dda7934f37e9b2aaec853ab780..4ec8afe3775d8feeba2ab528c9713cdae9e247fe 100644 (file)
@@ -170,6 +170,7 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
         }
         else
         {
+#if wxUSE_IMAGE
             wxImage loadimage(filename, type);
             if (loadimage.Ok()) 
             {
@@ -183,6 +184,9 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
                 CopyFromBitmap( bmp ) ;
                 return true;
             }
+#else
+            return false;
+#endif
         }
     }
     return true ;