summaryrefslogtreecommitdiff
path: root/src/wx/content_sub_panel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/content_sub_panel.cc')
-rw-r--r--src/wx/content_sub_panel.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc
index 93296d5b9..a60a65707 100644
--- a/src/wx/content_sub_panel.cc
+++ b/src/wx/content_sub_panel.cc
@@ -35,8 +35,9 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name)
: wxScrolledWindow (p->notebook(), wxID_ANY)
, _parent (p)
, _sizer (new wxBoxSizer (wxVERTICAL))
+ , _name (name)
{
- p->notebook()->AddPage (this, name, false);
+ p->notebook()->AddPage (this, _name, false);
SetScrollRate (-1, 8);
SetSizer (_sizer);
}