Changeset 6e411cc in subsurface


Ignore:
Timestamp:
Dec 20, 2017, 6:39:54 AM (5 weeks ago)
Author:
Jan Mulder <jlmulder@…>
Branches:
master
Children:
1fee774
Parents:
b7dcbb5
git-author:
Jan Mulder <jlmulder@…> (12/20/17 05:15:56)
git-committer:
Jan Mulder <jlmulder@…> (12/20/17 06:39:54)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/save-git.c

    r48d9c8e r6e411cc  
    159159                        put_format(b, " use=%s", cylinderuse_text[cylinder->cylinder_use]);
    160160                if (cylinder->depth.mm != 0)
    161                         put_milli(b, " depth='", cylinder->depth.mm, "m'");
     161                        put_milli(b, " depth=", cylinder->depth.mm, "m");
    162162                put_string(b, "\n");
    163163        }
Note: See TracChangeset for help on using the changeset viewer.