From cfb5756157855958352668383a1b2cd3e9e88dd6 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 11 Aug 2003 10:46:35 +0000 Subject: [PATCH] Cater for wxUSE_IMAGE=0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/artprov.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index e4c829757b..a14428f89e 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -32,7 +32,9 @@ #include "wx/artprov.h" #include "wx/hashmap.h" #include "wx/module.h" +#if wxUSE_IMAGE #include "wx/image.h" +#endif // For the purposes of forcing this module to link extern char g_ArtProviderModule; @@ -173,6 +175,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; bmp = node->GetData()->CreateBitmap(id, client, size); if ( bmp.Ok() ) { +#if wxUSE_IMAGE if ( size != wxDefaultSize && (bmp.GetWidth() != size.x || bmp.GetHeight() != size.y) ) { @@ -180,6 +183,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; img.Rescale(size.x, size.y); bmp = wxBitmap(img); } +#endif break; } } -- 2.45.2