mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: fix commit 46004c39e2
for real (erroneous quotes)
Unfortunately, in my commit48d9c8eb6e
, I fixed only half of the problems related to the functionality introduced by Stefan in commit46004c39e2
. 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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue