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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user