]> git.saurik.com Git - wxWidgets.git/commitdiff
Override wxTextEntry::GetSelection(long *from, long *to) in wxOwnerDrawnComboBox...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 16 Dec 2010 18:07:05 +0000 (18:07 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 16 Dec 2010 18:07:05 +0000 (18:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/odcombo.h
src/generic/odcombo.cpp

index 9a6b7bf394d55c88510bff91478bf225c64cc976..026720bcee8688eceb0b72c0ff9310bd8b6f4ec3 100644 (file)
@@ -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); }
 
 
index fb9d6b43afb27be21a24ded8cbe57d60594ad403..d0ca3c11f1729c4c1f1ab3ee6612c7af9636661c 100644 (file)
@@ -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,