]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
don't make control dirty after a call to SetValue()
[wxWidgets.git] / src / msw / textctrl.cpp
index 27a8a374621a0924f03e9cbfd1fb5fac58bc2248..7b7d9d905ec2b022c9eab64801783d3a11f46260 100644 (file)
@@ -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);
     }