diff --git a/PreCourlis/widgets/points_table_model.py b/PreCourlis/widgets/points_table_model.py index f30a119f606e65b6c69dc45a01333387c1c1490d..56f41b7cf13794ed23b459a0968ab4d490caa880 100644 --- a/PreCourlis/widgets/points_table_model.py +++ b/PreCourlis/widgets/points_table_model.py @@ -89,11 +89,11 @@ class PointsTableModel(QtCore.QAbstractTableModel): column = self.columns[index.column()] if column in ("abs_lat", "topo_bath"): - return super().data(index, role) + return None if column == "zfond": if self.valid_section_values[0][index.row()]: - return super().data(index, role) + return None else: return QtGui.QBrush(QtGui.QColor(255, 0, 0)) @@ -101,7 +101,7 @@ class PointsTableModel(QtCore.QAbstractTableModel): if self.valid_section_values[index.column() - self._NB_EXTRA_COLS + 1][ index.row() ]: - return super().data(index, role) + return None else: return QtGui.QBrush(QtGui.QColor(255, 0, 0))