Menu

#21 FixedRowHeightLayout::GetRowAt can return incorrectly

open
nobody
None
5
2008-10-02
2008-10-02
Anonymous
No

If e.g. clicking in a column header, point.Y can be negative, in which case it will return 0 incorrectly to GetNodeControlInfoAt method.

Suggest fix:
return point.Y >= 0 ? point.Y / _rowHeight : -1;

All the best, Harvey

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.