diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-20 14:15:56 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-20 15:39:54 +0100 |
commit | 6e411cc67d0c619574c5bf7b54e1b0a603c7c3c3 (patch) | |
tree | 6aef0cfc6aa79363f431cdd29fb9899875b51aed /core/save-git.c | |
parent | b7dcbb58fa5d185e9900a76b586869016b7b3db4 (diff) | |
download | subsurface-6e411cc67d0c619574c5bf7b54e1b0a603c7c3c3.tar.gz |
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>
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c index 46a4a24aa..27051ec39 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -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"); } } |