X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d5e5799a9af71438b38fa659eaa98d1f423a4a3..d9edff064d1443d15937ca429917527483f46a31:/src/msw/listctrl.cpp diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 52bf721d5e..8efb534922 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1183,7 +1183,7 @@ bool wxListCtrl::GetSubItemRect(long item, long subItem, wxRect& rect, int code) // there is no way to retrieve the first sub item bounding rectangle using // wxGetListCtrlSubItemRect() as 0 means the whole item, so we need to // truncate it at first column ourselves - if ( subItem == 0 ) + if ( subItem == 0 && code == wxLIST_RECT_BOUNDS ) rect.width = GetColumnWidth(0); return true;