generate a text event even if SetValue() didn't really chaneg anything

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-03 23:58:05 +00:00
parent b832916db7
commit 199fbd7093

View File

@@ -533,6 +533,11 @@ void wxTextCtrl::SetValue(const wxString& value)
{
DoWriteText(value, FALSE /* not selection only */);
}
else // same text
{
// still send an event for consistency
SendUpdateEvent();
}
// we should reset the modified flag even if the value didn't really change