X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28fdd8db44bc6070c71a77af783fb4da0b554d8c..d10e22fe8ad283f37b1809349028ffc282e393ce:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 53ec9740c7..4f69825027 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -802,7 +802,7 @@ void wxTextCtrl::DoSetValue(const wxString& value, int flags) // edit controls mostly) if ( (value.length() > 0x400) || (value != GetValue()) ) { - DoWriteText(value, flags); + DoWriteText(value, flags /* doesn't include SelectionOnly here */); // mark the control as being not dirty - we changed its text, not the // user @@ -1445,7 +1445,7 @@ void wxTextCtrl::Replace(long from, long to, const wxString& value) // Set selection and remove it DoSetSelection(from, to, false /* don't scroll caret into view */); - DoWriteText(value, SetValue_SelectionOnly); + DoWriteText(value); } void wxTextCtrl::Remove(long from, long to)