Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Murmele committed Nov 12, 2023
1 parent 986cbf1 commit c836908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/DiffTreeModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c836908

Please sign in to comment.