From ea3ce35cd8e3c4e9ea056afb8bb34396dcddeab7 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 6 May 2009 15:51:09 +0000 Subject: [PATCH] fix off-by-one size of wxCheckListBox item draw rect git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@60530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listbox.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index c2402552d0..7f00565941 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -808,11 +808,8 @@ bool wxListBox::MSWOnDraw(WXDRAWITEMSTRUCT *item) wxListBoxItem *pItem = (wxListBoxItem *)data; wxDCTemp dc((WXHDC)pStruct->hDC); - wxPoint pt1(pStruct->rcItem.left, pStruct->rcItem.top); - wxPoint pt2(pStruct->rcItem.right, pStruct->rcItem.bottom); - wxRect rect(pt1, pt2); - return pItem->OnDrawItem(dc, rect, + return pItem->OnDrawItem(dc, wxRectFromRECT(pStruct->rcItem), (wxOwnerDrawn::wxODAction)pStruct->itemAction, (wxOwnerDrawn::wxODStatus)pStruct->itemState); }