Oops, forgot to keep the string queue full. It works! Now to switch to custom draw.
This commit is contained in:
parent
69e91a9678
commit
06a8044c2c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue