From 104d7404b91b317b872bf770c2f9ab8d0200799b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 25 Dec 2001 22:32:55 +0000 Subject: [PATCH] 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 --- src/msw/textctrl.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.47.2