From e4e11217be476f2719cf45f012e5abcbd883c963 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Sat, 20 May 2006 23:35:23 +0000 Subject: [PATCH] [ 1492040 ] Prevent wxComboCtrl::GetPopupControl from failing. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/combo.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/combo.h b/include/wx/combo.h index db19acef5b..213409a74b 100644 --- a/include/wx/combo.h +++ b/include/wx/combo.h @@ -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; } -- 2.45.2