X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02da33e27d0eee3440a1ea83c8551ec99ab93f9f..61ef57fc5ec21c6561ec4a1f6b68bcc8e7a01b29:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 600a0fccd6..97da6f917f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -713,7 +713,7 @@ void wxListHeaderWindow::DoDrawRect( wxDC *dc, int x, int y, int w, int h ) dc->SetPen( *wxBLACK_PEN ); dc->DrawLine( x+w-m_corner+1, y, x+w, y+h ); // right (outer) - dc->DrawRectangle( x, y+h, w, 1 ); // bottom (outer) + dc->DrawRectangle( x, y+h, w+1, 1 ); // bottom (outer) wxPen pen( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_BTNSHADOW ), 1, wxSOLID ); @@ -2033,7 +2033,7 @@ long wxListMainWindow::GetNextItem( long item, int WXUNUSED(geometry), int state { long ret = 0; if (item > 0) ret = item; - if(item >= GetItemCount()) return -1; + if(ret >= GetItemCount()) return -1; wxNode *node = m_lines.Nth( ret ); while (node) {