bugfix: updateRegion call missed bounds checking

Dieser Commit ist enthalten in:
Reinder Feenstra 2023-05-27 23:20:06 +02:00
Ursprung cf8a09ed7d
Commit 43a8713047

Datei anzeigen

@ -46,7 +46,11 @@ void TableModel::setRegion(const Region& value)
m_region = value;
if(updateRegion)
{
update.columnMax = std::min(update.columnMax, static_cast<uint32_t>(m_columnHeaders.size()) - 1);
update.rowMax = std::min(update.rowMax, m_rowCount > 0 ? m_rowCount - 1 : 0);
updateRegion(shared_ptr<TableModel>(), update);
}
}
else
m_region = value;