Oops, forgot to keep the string queue full. It works! Now to switch to custom draw.

This commit is contained in:
Pietro Gagliardi 2018-06-08 22:11:46 -04:00
parent 69e91a9678
commit 06a8044c2c
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}