mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove last dc_number access from profile code
dc_number is a global variable indicating the currently displayed dive on desktop. It makes no sense on mobile, since multiple profiles can be active at the same time. Therefore, the profile code should not access this global, but use the dc number that is passed in. This removes the last access. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
96e825fb2e
commit
ada4632ff1
3 changed files with 5 additions and 8 deletions
|
@ -514,7 +514,7 @@ void ProfileScene::plotDive(const struct dive *dIn, int dcIn, DivePlannerPointsM
|
|||
animatedAxes.push_back(timeAxis);
|
||||
cylinderPressureAxis->setBounds(plotInfo.minpressure, plotInfo.maxpressure);
|
||||
|
||||
tankItem->setData(d, firstSecond, lastSecond);
|
||||
tankItem->setData(d, currentdc, firstSecond, lastSecond);
|
||||
|
||||
if (ppGraphsEnabled(currentdc, simplified)) {
|
||||
double max = prefs.pp_graphs.phe ? max_gas(plotInfo, &gas_pressures::he) : -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue