]> git.tdb.fi Git - ext/subsurface.git/commit
multi-dive editing: don't change fields that weren't changed for the master dive
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Aug 2012 14:39:50 +0000 (07:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Aug 2012 14:39:50 +0000 (07:39 -0700)
commit70f903c457a3b82cdaa62e232124cdbba5c11bc5
tree7a87b5aab86320ebf24c31179a44d377d504dfbc
parent94516177605484dacf724602c43f34b984d06ba8
multi-dive editing: don't change fields that weren't changed for the master dive

Commit 2f773b97e042 ("multi-dive editing: don't change already set data
for other dives") didn't get the multi-dive editing quite right: even if
one of the dives in the list of changed dives has an empty field, we
should *not* fill it with the edit data unless that edit data was
actually changed.

So compare the new data with the original master data, and if they
match, do nothing.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
info.c