id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	fixed_in_version
7	Switching to/from msw/fsw with  a dive planned leaves the last stop and step wrong.	eskil	eskil	"If you have a dive plan set, and you change the units being used, the conversion leaves the number is a slightly off state due to rounding.

Ie. a plan for 160fsw with last stop at 20fsw and interval of 10fsw. If changed to msw will yield a dive to 51msw but with a last stop of 6.14msw and a step interval of 3.07msw.

Hence a decogas such as 100% at 20fsw becomes 100% at 6msw, but ''wont'' be picked at the last stop since 6msw < 6.14msw...

Luckily this generates a plan that is obviously suspicious since all deco gas switches are off by 1 stop. And if you start a clean plan with the unit system chosen, everything will be right.

And of course ditto if switching from msw to fsw with a plan already set."	defect	closed	critical	Version 0.9.2	Plan Settings	0.9	Must Have	fixed			0.9.2
