]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
declare wxCalendarEvent ctor as inline before it's used (which happens before its...
[wxWidgets.git] / src / msw / textctrl.cpp
index 3cb69ee2677c49da33b1b8693cbeaa9dfa8eba9d..8e6a49e05fcbc129fc3abeb6dc6951423bcb573a 100644 (file)
@@ -358,9 +358,12 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id,
                 // only give the error msg once if the DLL can't be loaded
                 static bool s_errorGiven = false; // MT ok as only used by GUI
 
-                wxLogError(_("Impossible to create a rich edit control, using simple text control instead. Please reinstall riched32.dll"));
+                if ( !s_errorGiven )
+                {
+                    wxLogError(_("Impossible to create a rich edit control, using simple text control instead. Please reinstall riched32.dll"));
 
-                s_errorGiven = true;
+                    s_errorGiven = true;
+                }
 
                 m_verRichEdit = 0;
             }