X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25dd6997c5dfd92e8f8ea056253154b65d109c5a..642067e02a202feddc97255f1229e4e7378541d9:/src/common/artprov.cpp diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index 8da185b4e8..194219d32d 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -119,6 +119,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; } sm_providers->Insert(provider); + sm_cache->Clear(); } /*static*/ bool wxArtProvider::PopProvider() @@ -206,8 +207,15 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; class wxArtProviderModule: public wxModule { public: - bool OnInit() { return TRUE; } - void OnExit() { wxArtProvider::CleanUpProviders(); } + bool OnInit() + { + wxArtProvider::InitStdProvider(); + return TRUE; + } + void OnExit() + { + wxArtProvider::CleanUpProviders(); + } DECLARE_DYNAMIC_CLASS(wxArtProviderModule) };