Fixed a typo in tableimages.cpp. Okay, so the code I had before worked purely by accident, and this code doesn't. Wonderful...

This commit is contained in:
Pietro Gagliardi 2018-06-12 01:40:26 -04:00
parent 8f0019af10
commit 0f89418a95
1 changed files with 2 additions and 2 deletions

View File

@ -170,8 +170,8 @@ HRESULT uiprivNM_CUSTOMDRAWImagesCheckboxes(uiTable *t, NMLVCUSTOMDRAW *nm, LRES
}
// the real listview also does this :|
ZeroMemory(&cellRect, sizeof (RECT));
r.left = LVIR_BOUNDS;
r.top = nm->iSubItem;
cellRect.left = LVIR_BOUNDS;
cellRect.top = nm->iSubItem;
if (SendMessageW(t->hwnd, LVM_GETSUBITEMRECT, nm->nmcd.dwItemSpec, (LPARAM) (&cellRect)) == 0) {
logLastError(L"LVM_GETSUBITEMRECT cell");
return E_FAIL;