Skip to content

Commit

Permalink
CompileStatusModel: col/row is 1 based, not 0
Browse files Browse the repository at this point in the history
Make the display of line/colunm to start at line 1, and not 0.
  • Loading branch information
diegoiast committed Jan 21, 2025
1 parent 3948847 commit 2136fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/ProjectManager/ProjectIssuesWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ QVariant CompileStatusModel::data(const QModelIndex &index, int role) const {
case 1:
return status.message;
case 2:
return QString("%1 (%2:%3)").arg(status.displayName).arg(status.row).arg(status.col);
return QString("%1 (%2:%3)").arg(status.displayName).arg(status.row+1).arg(status.col+1);
default:
return {};
}
Expand Down

0 comments on commit 2136fdd

Please sign in to comment.