diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index 7294febe6f..1c18b538ca 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -33,6 +33,8 @@ #include "wx/hashmap.h" #include "wx/module.h" +// For the purposes of forcing this module to link +extern char g_ArtProviderModule; // =========================================================================== // implementation @@ -81,6 +83,9 @@ bool wxArtProviderCache::GetBitmap(const wxString& full_id, wxBitmap* bmp) void wxArtProviderCache::Clear() { + // Hack to make the default provider link + // with the application + g_ArtProviderModule = 0; m_bitmapsHash.clear(); } diff --git a/src/common/artstd.cpp b/src/common/artstd.cpp index fb05b05047..3bbd83c4c8 100644 --- a/src/common/artstd.cpp +++ b/src/common/artstd.cpp @@ -23,6 +23,9 @@ #include "wx/artprov.h" #include "wx/module.h" +// For the purposes of forcing this module to link +char g_ArtProviderModule = 0; + // ---------------------------------------------------------------------------- // wxDefaultArtProvider // ----------------------------------------------------------------------------