]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textentry.h
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / include / wx / textentry.h
index 2ede40d714a4b3189dc0f6a038572e514147a662..fc315b632fc089e041b10e0dbd9edfc2d2d047b8 100644 (file)
@@ -98,6 +98,8 @@ public:
 
     virtual void SetSelection(long from, long to) = 0;
     virtual void SelectAll() { SetSelection(-1, -1); }
+    virtual void SelectNone()
+        { const long pos = GetInsertionPoint(); SetSelection(pos, pos); }
     virtual void GetSelection(long *from, long *to) const = 0;
     bool HasSelection() const;
     virtual wxString GetStringSelection() const;