mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove check for whether a site is used before saving it.
Signed-off-by: Doug Junkins <junkins@foghead.com>
This commit is contained in:
parent
58f2e5f77c
commit
9b5eab4ca1
2 changed files with 1 additions and 6 deletions
|
@ -596,9 +596,7 @@ void save_dives_buffer(struct membuffer *b, const bool select_only, bool anonymi
|
|||
put_format(b, "<divesites>\n");
|
||||
for (i = 0; i < dive_site_table.nr; i++) {
|
||||
struct dive_site *ds = get_dive_site(i, &dive_site_table);
|
||||
/* Only write used dive sites */
|
||||
if (!is_dive_site_used(ds, false))
|
||||
continue;
|
||||
/* Only write used dive sites when exporting selected dives */
|
||||
if (select_only && !is_dive_site_used(ds, true))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue