]> git.saurik.com Git - wxWidgets.git/commitdiff
fix a problem with loading inked.dll (see #10633)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Apr 2009 18:41:02 +0000 (18:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Apr 2009 18:41:02 +0000 (18:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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()
 {
 // load the InkEdit library
 bool wxRichEditModule::LoadInkEdit()
 {
-    static wxDynamicLibrary ms_inkEditLib;
-    static bool             ms_inkEditLibLoadAttemped;
     if (ms_inkEditLibLoadAttemped)
     if (ms_inkEditLibLoadAttemped)
-        ms_inkEditLib.IsLoaded();
+        return ms_inkEditLib.IsLoaded();
 
     ms_inkEditLibLoadAttemped = true;
 
 
     ms_inkEditLibLoadAttemped = true;