From 06a8044c2c35639d1e39fd355b424880e404ff6b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 8 Jun 2018 22:11:46 -0400 Subject: [PATCH] Oops, forgot to keep the string queue full. It works! Now to switch to custom draw. --- windows/table.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/windows/table.cpp b/windows/table.cpp index 79c0bdb0..e60ad3c5 100644 --- a/windows/table.cpp +++ b/windows/table.cpp @@ -112,6 +112,7 @@ static LRESULT onLVN_GETDISPINFO(uiTable *t, NMLVDISPINFOW *nm) struct columnParams *p; uiTableData *data; WCHAR *wstr; + bool queueUpdated = false; wstr = t->dispinfoStrings->front(); if (wstr != NULL) @@ -127,8 +128,12 @@ static LRESULT onLVN_GETDISPINFO(uiTable *t, NMLVDISPINFOW *nm) uiFreeTableData(data); nm->item.pszText = wstr; t->dispinfoStrings->push(wstr); + queueUpdated = true; } + // we don't want to pop from an empty queue, so if nothing updated the queue (no info was filled in above), just push NULL + if (!queueUpdated) + t->dispinfoStrings->push(NULL); return 0; }