]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
add missing wx/module.h header to fix PCH-less build (closes #10743)
[wxWidgets.git] / src / msw / textctrl.cpp
index 533da4a07717674cb4b41957edd21c58a61a605b..e6a2500f0579cff2b710fb44df750285f365dc29 100644 (file)
@@ -2822,10 +2822,8 @@ bool wxRichEditModule::Load(Version version)
 // load the InkEdit library
 bool wxRichEditModule::LoadInkEdit()
 {
-    static wxDynamicLibrary ms_inkEditLib;
-    static bool             ms_inkEditLibLoadAttemped;
     if (ms_inkEditLibLoadAttemped)
-        ms_inkEditLib.IsLoaded();
+        return ms_inkEditLib.IsLoaded();
 
     ms_inkEditLibLoadAttemped = true;