diff --git a/include/wx/odcombo.h b/include/wx/odcombo.h index 026720bcee..2dc15d4058 100644 --- a/include/wx/odcombo.h +++ b/include/wx/odcombo.h @@ -317,8 +317,9 @@ public: virtual void Select(int n); virtual int GetSelection() const; - // Override this just to maintain consistency with virtual methods + // Override these just to maintain consistency with virtual methods // between classes. + virtual void Clear(); virtual void GetSelection(long *from, long *to) const; virtual void SetSelection(int n) { Select(n); } diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index d0ca3c11f1..09758b214d 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -996,6 +996,11 @@ void wxOwnerDrawnComboBox::DoClear() SetValue(wxEmptyString); } +void wxOwnerDrawnComboBox::Clear() +{ + DoClear(); +} + void wxOwnerDrawnComboBox::DoDeleteOneItem(unsigned int n) { wxCHECK_RET( IsValid(n), wxT("invalid index in wxOwnerDrawnComboBox::Delete") );