This commit is contained in:
Martin Marmsoler 2023-11-12 18:19:12 +01:00
parent 986cbf140e
commit c836908b9e

View File

@ -113,7 +113,7 @@ int DiffTreeModel::rowCount(const QModelIndex &parent) const {
QVariant DiffTreeModel::headerData(int section, Qt::Orientation orientation,
int role) const {
if (section > 2) {
if (section > 2 || section < 0) {
assert(false);
return QVariant();
}