diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-19 06:38:37 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-19 20:12:59 +0900 |
commit | cae51ff0aa29d0e8ae312069a7473ff7cc901602 (patch) | |
tree | 05524aa816e70813b8e153f5916740d7ee743e84 /qt-ui/profile/diveplotdatamodel.cpp | |
parent | c4899aa8f1ba9ec97818bc138c0dd63f4d02b683 (diff) | |
download | subsurface-cae51ff0aa29d0e8ae312069a7473ff7cc901602.tar.gz |
Change get_dive_by_diveid to get_dive_by_uniq_id
The original name was a really bad choice as we have a 'diveid' as part of
struct divecomputer - and that is not the diveid that is being used here.
Instead we use the 'id' member of struct dive which holds the "unique ID"
for this dive.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveplotdatamodel.cpp')
-rw-r--r-- | qt-ui/profile/diveplotdatamodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp index 990564fbb..2fe636a4b 100644 --- a/qt-ui/profile/diveplotdatamodel.cpp +++ b/qt-ui/profile/diveplotdatamodel.cpp @@ -178,7 +178,7 @@ void DivePlotDataModel::emitDataChanged() void DivePlotDataModel::calculateDecompression() { - struct dive *d = get_dive_by_diveid(id()); + struct dive *d = get_dive_by_uniq_id(id()); struct divecomputer *dc = select_dc(d); init_decompression(d); calculate_deco_information(d, dc, &pInfo, false); |