Minor
This commit is contained in:
parent
bd983fab55
commit
f84671ef8e
1 changed files with 2 additions and 2 deletions
|
@ -1038,8 +1038,8 @@ void Menu::exposeEvent(XExposeEvent &ee) {
|
|||
size_t row = ee.y / item_h;
|
||||
size_t end_row = ((ee.y + ee.height) / item_h);
|
||||
|
||||
if (end_row > m_rows_per_column)
|
||||
end_row = m_rows_per_column;
|
||||
if (end_row > static_cast<size_t>(m_rows_per_column))
|
||||
end_row = static_cast<size_t>(m_rows_per_column);
|
||||
|
||||
for (size_t j = (ee.x / m_item_w); j < t; j++) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue