summaryrefslogtreecommitdiffstats
path: root/profile-widget/ruleritem.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-06 11:58:27 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-09 19:19:04 +0100
commit4724c8853342580d2bc60bf85a566f6285330927 (patch)
tree40e6cb7939281a5baf98de697fe66bfcc6b618af /profile-widget/ruleritem.cpp
parentfbd74c26d6652543cbc7331734e304dbf2ef5113 (diff)
downloadsubsurface-4724c8853342580d2bc60bf85a566f6285330927.tar.gz
Profile: change get_plot_pressure to take index instead of pointer
The goal here is to make it possible to detach the pressure related data from the plot_info structure. Thus, the pressure related data can be allocated independently depending on the number of cylinders per dive. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/ruleritem.cpp')
-rw-r--r--profile-widget/ruleritem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/ruleritem.cpp b/profile-widget/ruleritem.cpp
index aecbab85b..a76012739 100644
--- a/profile-widget/ruleritem.cpp
+++ b/profile-widget/ruleritem.cpp
@@ -116,7 +116,7 @@ void RulerItem2::recalculate()
}
QLineF line(startPoint, endPoint);
setLine(line);
- compare_samples(&pInfo.entry[source->idx], &pInfo.entry[dest->idx], buffer, 500, 1);
+ compare_samples(&pInfo, source->idx, dest->idx, buffer, 500, 1);
text = QString(buffer);
// draw text