mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: add make_manually_added_dc() function
For reasons of symmetry (there is a is_manually_added_dc() function), create a make_manually_added_dc() function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f687e51d4b
commit
261f07dfa4
5 changed files with 12 additions and 4 deletions
|
@ -690,7 +690,7 @@ void MainWindow::on_actionAddDive_triggered()
|
|||
d.dc.duration.seconds = 40 * 60;
|
||||
d.dc.maxdepth.mm = M_OR_FT(15, 45);
|
||||
d.dc.meandepth.mm = M_OR_FT(13, 39); // this creates a resonable looking safety stop
|
||||
d.dc.model = strdup("manually added dive"); // don't translate! this is stored in the XML file
|
||||
make_manually_added_dc(&d.dc);
|
||||
fake_dc(&d.dc);
|
||||
fixup_dive(&d);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue