]> git.saurik.com Git - wxWidgets.git/commitdiff
generate a text event even if SetValue() didn't really chaneg anything
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Aug 2003 23:58:05 +0000 (23:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Aug 2003 23:58:05 +0000 (23:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index 33137b7274e83621f4df52b870c3480e901f302f..9951c9ba36b80315d6375ea6cc1f03826a2171dc 100644 (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