X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/716dc24570f542fd68df9edf5c54e178a7c58bdd..750972abb40f3d045640d75e858244677aaefb15:/src/generic/listbkg.cpp?ds=sidebyside diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index 34d726efe7..3fc2953c17 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -172,7 +172,8 @@ wxRect wxListbook::GetPageRect() const { const wxSize sizeList = m_list->GetSize(); - wxRect rectPage(wxPoint(0, 0), GetClientSize()); + wxPoint pt(0, 0); + wxRect rectPage(pt, GetClientSize()); switch ( GetWindowStyle() & wxLB_ALIGN_MASK ) { default: @@ -240,7 +241,7 @@ void wxListbook::OnSize(wxSizeEvent& event) #if wxUSE_LINE_IN_LISTBOOK if ( m_line ) { - wxRect rectLine(wxPoint(0, 0), sizeClient); + wxRect rectLine(sizeClient); switch ( GetWindowStyle() & wxLB_ALIGN_MASK ) { @@ -401,7 +402,7 @@ wxListbook::InsertPage(size_t n, // index of the selected page if ( int(n) <= m_selection ) { - // one extra page added + // one extra page added m_selection++; m_list->Select(m_selection); m_list->Focus(m_selection);