Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: split proper divecomputer in split_divecomputer()
split_divecomputer() is passed a dive and a divecomputer number. However, it accesses the currently visible dc! This would be a nasty bug if it werent for the fact that it is called when placing an undo command and there it is passed the current dive and divecomputer anyway. Nevertheless, fix this. Signed-off-by: Berthold Stoeger <[email protected]>
- Loading branch information