delete the associated wxStaticBox in wxStaticBoxSizer dtor (patch 1473769)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -685,6 +685,7 @@ class WXDLLEXPORT wxStaticBoxSizer: public wxBoxSizer
|
||||
public:
|
||||
wxStaticBoxSizer(wxStaticBox *box, int orient);
|
||||
wxStaticBoxSizer(int orient, wxWindow *win, const wxString& label = wxEmptyString);
|
||||
virtual ~wxStaticBoxSizer() { delete m_staticBox; }
|
||||
|
||||
void RecalcSizes();
|
||||
wxSize CalcMin();
|
||||
@@ -694,6 +695,7 @@ public:
|
||||
|
||||
// override to hide/show the static box as well
|
||||
virtual void ShowItems (bool show);
|
||||
virtual bool Detach( wxWindow *window );
|
||||
|
||||
protected:
|
||||
wxStaticBox *m_staticBox;
|
||||
|
Reference in New Issue
Block a user