X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b4a9377b0af45636390cf201fa4efbb3046e143..104d7404b91b317b872bf770c2f9ab8d0200799b:/src/msw/textctrl.cpp 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); }