summaryrefslogtreecommitdiffstats
path: root/qt-models/diveplotdatamodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/diveplotdatamodel.cpp')
-rw-r--r--qt-models/diveplotdatamodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp
index a804ec1c3..e5bb30ab0 100644
--- a/qt-models/diveplotdatamodel.cpp
+++ b/qt-models/diveplotdatamodel.cpp
@@ -32,7 +32,7 @@ QVariant DivePlotDataModel::data(const QModelIndex &index, int role) const
case TIME:
return item.sec;
case PRESSURE:
- return item.pressure[0];
+ return item.pressure[0][0];
case TEMPERATURE:
return item.temperature;
case COLOR:
@@ -42,9 +42,9 @@ QVariant DivePlotDataModel::data(const QModelIndex &index, int role) const
case CYLINDERINDEX:
return item.cylinderindex;
case SENSOR_PRESSURE:
- return item.pressure[0];
+ return item.pressure[0][0];
case INTERPOLATED_PRESSURE:
- return item.pressure[1];
+ return item.pressure[0][1];
case CEILING:
return item.ceiling;
case SAC: