core: fix commit 46004c39e266fe7 for real (erroneous quotes)
Unfortunately, in my commit 48d9c8eb6eb07a, I fixed only half of the problems related to the functionality introduced by Stefan in commit 46004c39e266fe7. 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:
parent
b7dcbb58fa
commit
6e411cc67d
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user