diff options
| -rw-r--r-- | src/wx/content_panel.cc | 2 | ||||
| -rw-r--r-- | src/wx/content_sub_panel.cc | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 820372728..05079604b 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -379,7 +379,7 @@ ContentPanel::selection_changed () } } - if (!done) { + if (!done && _notebook->GetPageCount() > 0) { _notebook->SetSelection (0); } diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index a60a65707..a30d3cfce 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -37,7 +37,6 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name) , _sizer (new wxBoxSizer (wxVERTICAL)) , _name (name) { - p->notebook()->AddPage (this, _name, false); SetScrollRate (-1, 8); SetSizer (_sizer); } |
