core: fix commit 46004c39e2 for real (erroneous quotes)

Unfortunately, in my commit 48d9c8eb6e, I fixed only half of
the problems related to the functionality introduced by Stefan in
commit 46004c39e2. The lonely m (that was fixed) caused
a parsing error, but forgotten where the single quotes around
the depth value. These quotes simply causes the new functionality
not to work. Again, the fix is simple: do not erroneously save
quotes. And as the new functionality is pretty obscure
(replanning a non-planned dive, and manually entering a gas switch
depth), another bug that could go unnoticed for years.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-12-20 14:15:56 +01:00
parent b7dcbb58fa
commit 6e411cc67d

View file

@ -158,7 +158,7 @@ static void save_cylinder_info(struct membuffer *b, struct dive *dive)
if (cylinder->cylinder_use != OC_GAS)
put_format(b, " use=%s", cylinderuse_text[cylinder->cylinder_use]);
if (cylinder->depth.mm != 0)
put_milli(b, " depth='", cylinder->depth.mm, "m'");
put_milli(b, " depth=", cylinder->depth.mm, "m");
put_string(b, "\n");
}
}