fix a bug of listbox's header column_from_point
This commit is contained in:
parent
4cda75f20d
commit
dfc39fdb81
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user