From e5f4aeb634849ae0c5090b54e3e6cd3a9ffd9b33 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 23 Mar 2002 12:58:20 +0000 Subject: [PATCH] Added hack to make standard art provider link with app git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/artprov.cpp | 5 +++++ src/common/artstd.cpp | 3 +++ 2 files changed, 8 insertions(+) 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 // ---------------------------------------------------------------------------- -- 2.45.2