X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57b0987bb9ecbfe2f59f19ca3cc8c9328253180d..368d59f0d858da22d91bcf668a7ea0781256e2cf:/src/common/artprov.cpp 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(); }