From b14cd77b2aa34263c617a5d51e8ea2e1e2c11526 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 24 Sep 2009 14:35:39 +0000 Subject: [PATCH] wxTextCtrl::LoadFile no longer sends a text event, to correct problems with spurious modification of documents. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/textcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index d620dff1b9..402037e1e1 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -745,7 +745,7 @@ bool wxTextCtrlBase::DoLoadFile(const wxString& filename, int WXUNUSED(fileType) wxString text; if ( file.ReadAll(&text) ) { - SetValue(text); + ChangeValue(text); DiscardEdits();