From: Vadim Zeitlin Date: Thu, 25 Aug 2005 19:14:44 +0000 (+0000) Subject: only give error about missing richedit.dll once (the code was already supposed to... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f8387e15ee87ab9c37d79308199612a5604c0c8b only give error about missing richedit.dll once (the code was already supposed to work like this but didn't, patch 1273177) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 3cb69ee267..8e6a49e05f 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -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; }