mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
d97cc8d4d5
commit
85d1e1d199
3 changed files with 19 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue