fix a bug of listbox's header column_from_point

This commit is contained in:
Jinhao 2016-06-17 02:41:09 +08:00
parent 4cda75f20d
commit dfc39fdb81

View File

@ -688,14 +688,13 @@ namespace nana
{
if (col.visible_state)
{
if (x < static_cast<int>(col.width_px))
return col.index;
x -= static_cast<int>(col.width_px);
continue;
}
if (x < static_cast<int>(col.width_px))
return col.index;
}
return npos;
}