]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1492040 ] Prevent wxComboCtrl::GetPopupControl from failing.
authorWłodzimierz Skiba <abx@abx.art.pl>
Sat, 20 May 2006 23:35:23 +0000 (23:35 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Sat, 20 May 2006 23:35:23 +0000 (23:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/combo.h

index db19acef5b161143fd3bd4ef35601d5093f69ead..213409a74b321ac3624857daadeabea2fd2ab2e1 100644 (file)
@@ -159,7 +159,11 @@ public:
     virtual void SetPopupControl( wxComboPopup* popup );
 
     // get interface class instance derived from wxComboPopup
-    wxComboPopup* GetPopupControl() const { return m_popupInterface; }
+    wxComboPopup* GetPopupControl()
+    {
+        EnsurePopupControl();
+        return m_popupInterface;
+    }
 
     // get the popup window containing the popup control
     wxWindow *GetPopupWindow() const { return m_winPopup; }