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
This commit is contained in:
Julian Smart 2009-09-24 14:35:39 +00:00
parent 8410881294
commit b14cd77b2a

View File

@ -745,7 +745,7 @@ bool wxTextCtrlBase::DoLoadFile(const wxString& filename, int WXUNUSED(fileType)
wxString text;
if ( file.ReadAll(&text) )
{
SetValue(text);
ChangeValue(text);
DiscardEdits();