From: Linus Torvalds Date: Tue, 21 Aug 2012 22:37:38 +0000 (-0700) Subject: Fix single-dive editing oddity X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e46688d694d33f445ecb2368541898613af0f3b3;hp=e46688d694d33f445ecb2368541898613af0f3b3;p=ext%2Fsubsurface.git Fix single-dive editing oddity The multi-dive case does fine, but the single-dive case (used when adding a dive, for example) was somewhat confused between the dive index (which is the location in the dive array) and the dive number. Fix this by just passing the dive pointer instead (where NULL means to use the current dive selection). Reported-by: Jacco van Koll Root-caused-by: Dirk Hohndel Signed-off-by: Linus Torvalds ---