From: Robert Roebling Date: Tue, 21 Aug 2007 10:48:43 +0000 (+0000) Subject: Removed gaps between header buttons and the strange header offset X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/36a03ed8c3d4670649eaf7b0bc7b44c39ea24505?ds=inline Removed gaps between header buttons and the strange header offset git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 67562c04aa..f040ab1d53 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -83,8 +83,8 @@ static const int EXTRA_BORDER_X = 2; static const int EXTRA_BORDER_Y = 2; // offset for the header window -static const int HEADER_OFFSET_X = 1; -static const int HEADER_OFFSET_Y = 1; +static const int HEADER_OFFSET_X = 0; +static const int HEADER_OFFSET_Y = 0; // margin between rows of icons in [small] icon view static const int MARGIN_BETWEEN_ROWS = 6; @@ -1808,15 +1808,8 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) m_owner->GetColumn( i, item ); int wCol = item.m_width; - // the width of the rect to draw: make it smaller to fit entirely - // inside the column rect -#ifdef __WXMAC__ int cw = wCol; int ch = h; -#else - int cw = wCol - 2; - int ch = h - 2; -#endif int flags = 0; if (!m_parent->IsEnabled())