diff options
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2860,6 +2860,11 @@ static int split_dive_at(struct dive *dive, int a, int b) d1 = create_new_copy(dive); d2 = create_new_copy(dive); + /* now unselect the first first segment so we don't keep all + * dives selected by mistake. But do keep the second one selected + * so the algorithm keeps splitting the dive further */ + d1->selected = false; + dc1 = &d1->dc; dc2 = &d2->dc; /* |