profile: only plot visible range of tank info

This was a rather trivial change: simply pass in the first
and the last second to the plot function.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-10-08 21:28:32 +02:00 committed by Dirk Hohndel
parent d97cc8d4d5
commit 85d1e1d199
3 changed files with 19 additions and 20 deletions

View file

@ -447,7 +447,7 @@ void ProfileScene::plotDive(const struct dive *dIn, int dcIn, DivePlannerPointsM
ocpo2GasItem->setVisible(false);
}
#endif
tankItem->setData(&plotInfo, d);
tankItem->setData(d, firstSecond, lastSecond);
if (ppGraphsEnabled()) {
double max = prefs.pp_graphs.phe ? dataModel->pheMax() : -1;