From eb4da42d789b364d7fed7b38d2806071a29affc7 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 10 Oct 2003 08:20:31 +0000 Subject: [PATCH] Fix for last SetValue mod git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 7c84b1777d..a0311a97ae 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -571,15 +571,14 @@ void wxTextCtrl::SetValue(const wxString& value) { DoWriteText(value, FALSE /* not selection only */); - // we should reset the modified flag even if the value didn't really change - - // 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); } + // we should reset the modified flag even if the value didn't really change + + // mark the control as being not dirty - we changed its text, not the + // user + DiscardEdits(); } #if wxUSE_RICHEDIT && (!wxUSE_UNICODE || wxUSE_UNICODE_MSLU)