From 0f89418a9559c86135e21bf40fa29808248a2aa9 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 12 Jun 2018 01:40:26 -0400 Subject: [PATCH] Fixed a typo in tableimages.cpp. Okay, so the code I had before worked purely by accident, and this code doesn't. Wonderful... --- windows/tableimages.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/tableimages.cpp b/windows/tableimages.cpp index a42307b1..6bb168b8 100644 --- a/windows/tableimages.cpp +++ b/windows/tableimages.cpp @@ -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;