fix a bug that listbox may not be drawn(#317)

it doesn't draw if the first column is wider than the width of listbox
This commit is contained in:
Jinhao 2018-06-13 23:18:25 +08:00
parent 5d0650ffe7
commit 094830b8a7

View File

@ -2470,10 +2470,10 @@ namespace nana
x += col.width_px;
if (x > 0)
{
seqs.push_back(col.index);
if (x >= static_cast<int>(lister_w))
break;
seqs.push_back(col.index);
}
}
return seqs;