diff --git a/include/wx/odcombo.h b/include/wx/odcombo.h index 9a6b7bf394..026720bcee 100644 --- a/include/wx/odcombo.h +++ b/include/wx/odcombo.h @@ -316,6 +316,11 @@ public: virtual int FindString(const wxString& s, bool bCase = false) const; virtual void Select(int n); virtual int GetSelection() const; + + // Override this just to maintain consistency with virtual methods + // between classes. + 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 fb9d6b43af..d0ca3c11f1 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -1070,6 +1070,11 @@ int wxOwnerDrawnComboBox::GetSelection() const return GetVListBoxComboPopup()->GetSelection(); } +void wxOwnerDrawnComboBox::GetSelection(long *from, long *to) const +{ + return wxComboCtrl::GetSelection(from, to); +} + int wxOwnerDrawnComboBox::DoInsertItems(const wxArrayStringsAdapter& items, unsigned int pos, void **clientData,