diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index eae7c13d3c..90edce65e6 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -324,13 +324,9 @@ wxListbook::InsertPage(size_t n, if ( selNew != -1 ) SetSelection(selNew); - GetListView()->Arrange(); - - if (GetPageCount() == 1) - { - wxSizeEvent sz(GetSize(), GetId()); - GetEventHandler()->ProcessEvent(sz); - } + wxSizeEvent sz(GetSize(), GetId()); + GetEventHandler()->ProcessEvent(sz); + return true; }