mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c4899aa8f1
commit
cae51ff0aa
5 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue