]> git.saurik.com Git - wxWidgets.git/commitdiff
Incomplete setup build fix (wxPalmOS).
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 14 Mar 2005 10:19:26 +0000 (10:19 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 14 Mar 2005 10:19:26 +0000 (10:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/artstd.cpp

index a96e970d22b1bf02278466dbfb5551b517df5ec8..dd3f13c1a63534df95942feb1e3bc198a052cdf5 100644 (file)
@@ -201,6 +201,7 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id,
 {
     wxBitmap bmp = wxDefaultArtProvider_CreateBitmap(id);
 
+#if wxUSE_IMAGE
     if (bmp.Ok())
     {
         // fit into transparent image with desired size hint from the client
@@ -219,9 +220,11 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id,
                     wxImage img = bmp.ConvertToImage();
                     img.Resize(bestSize, offset);
                     bmp = wxBitmap(img);
-                }        
+                }
             }
-        }      
+        }
     }
+#endif // wxUSE_IMAGE
+
     return bmp;
 }