This commit is contained in:
Mathias Gumz 2015-02-07 18:05:41 +01:00
parent bd983fab55
commit f84671ef8e

View file

@ -1038,8 +1038,8 @@ void Menu::exposeEvent(XExposeEvent &ee) {
size_t row = ee.y / item_h; size_t row = ee.y / item_h;
size_t end_row = ((ee.y + ee.height) / item_h); size_t end_row = ((ee.y + ee.height) / item_h);
if (end_row > m_rows_per_column) if (end_row > static_cast<size_t>(m_rows_per_column))
end_row = 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++) { for (size_t j = (ee.x / m_item_w); j < t; j++) {