From: Vadim Zeitlin Date: Tue, 25 Dec 2001 22:32:55 +0000 (+0000) Subject: don't make control dirty after a call to SetValue() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/104d7404b91b317b872bf770c2f9ab8d0200799b don't make control dirty after a call to SetValue() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 27a8a37462..7b7d9d905e 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -438,6 +438,10 @@ void wxTextCtrl::SetValue(const wxString& value) WriteText(value); + // mark the control as being not dirty - we changed its text, not the + // user + DiscardEdits(); + // for compatibility, don't move the cursor when doing SetValue() SetInsertionPoint(0); }