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
This commit is contained in:
parent
8b4a9377b0
commit
104d7404b9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user