Added GetMainWidget() to fix bug that was causing crashes under wxMOTIF.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1e2c86ca5c
commit
7183e38bec
2 changed files with 11 additions and 0 deletions
|
|
@ -46,6 +46,11 @@ public:
|
|||
long style = wxLI_HORIZONTAL,
|
||||
const wxString &name = wxStaticTextNameStr );
|
||||
|
||||
// it's necessary to override this wxWindow function because we
|
||||
// will want to return the main widget for m_statbox
|
||||
//
|
||||
WXWidget GetMainWidget() const;
|
||||
|
||||
protected:
|
||||
// we implement the static line using a static box
|
||||
wxStaticBox *m_statbox;
|
||||
|
|
|
|||
|
|
@ -59,3 +59,9 @@ bool wxStaticLine::Create( wxWindow *parent,
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
WXWidget wxStaticLine::GetMainWidget() const
|
||||
{
|
||||
return m_statbox->GetMainWidget();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue