mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fixed invalid values on the TableView
The values of the dive points on the tableview were too big, I'm now dividing time by 60 and depth by 1000 to get the correct results. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
5ad4cfe8e2
commit
9d90034109
1 changed files with 2 additions and 2 deletions
|
@ -882,8 +882,8 @@ QVariant DivePlannerPointsModel::data(const QModelIndex& index, int role) const
|
|||
switch(index.column()){
|
||||
case GAS: return tr("Air");
|
||||
case CCSETPOINT: return 0;
|
||||
case DEPTH: return p.depth;
|
||||
case DURATION: return p.time;
|
||||
case DEPTH: return p.depth / 1000;
|
||||
case DURATION: return p.time / 60;
|
||||
}
|
||||
}
|
||||
return QVariant();
|
||||
|
|
Loading…
Add table
Reference in a new issue