diff --git a/sources/mainwindow.ui b/sources/mainwindow.ui
index f8045b0..d5fb68c 100644
--- a/sources/mainwindow.ui
+++ b/sources/mainwindow.ui
@@ -6,8 +6,8 @@
0
0
- 390
- 562
+ 333
+ 564
@@ -19,7 +19,7 @@
10
10
- 371
+ 311
71
@@ -65,7 +65,7 @@
10
90
- 371
+ 311
421
@@ -79,7 +79,7 @@
0
0
- 390
+ 333
20
diff --git a/sources/sqmtablemodel.cpp b/sources/sqmtablemodel.cpp
index e52193e..7311497 100644
--- a/sources/sqmtablemodel.cpp
+++ b/sources/sqmtablemodel.cpp
@@ -33,9 +33,10 @@ QVariant SQMTableModel::data(const QModelIndex &index, int role) const {
break;
case Qt::ForegroundRole:
if (changedHere.isValid()) {
- if (row >= changedHere.row() && col >= changedHere.column()) {
- result = QColor(Qt::red);
+
+ if ((row > changedHere.row() || (col >= changedHere.column() && row == changedHere.row())) && (col != 0 || changedHere.column() == 0)) {
+ result = QColor(Qt::red);
}
}
break;