X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25dd6997c5dfd92e8f8ea056253154b65d109c5a..008a56c968ed7e0694e32e93c2dbf95dde2ba5c8:/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) };