Changeset 6a1c384 in git


Ignore:
Timestamp:
14/01/14 02:23:57 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
ad95991
Parents:
b4d8642
git-author:
Olly Betts <olly@…> (13/01/14 04:20:38)
git-committer:
Olly Betts <olly@…> (14/01/14 02:23:57)
Message:

src/gpx.cc: Don't try to write the title if it isn't set or is
empty.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rb4d8642 r6a1c384  
     1Mon Jan 13 04:20:11 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * src/gpx.cc: Don't try to write the title if it isn't set or is
     4          empty.
     5
    16Mon Jan 13 04:09:27 GMT 2014  Olly Betts <olly@survex.com>
    27
  • src/gpx.cc

    rb4d8642 r6a1c384  
    105105" xsi:schemaLocation=\"http://www.topografix.com/GPX/1/0"
    106106" http://www.topografix.com/GPX/1/0/gpx.xsd\">\n", fh);
    107     fputs("<name>", fh);
    108     html_escape(fh, title);
    109     fputs("</name>\n", fh);
     107    if (title) {
     108        fputs("<name>", fh);
     109        html_escape(fh, title);
     110        fputs("</name>\n", fh);
     111    }
    110112    // FIXME: optional in GPX, but perhaps useful:
    111113    // <bounds minlat="..." minlon="..." maxlat="..." maxlon="..." />
Note: See TracChangeset for help on using the changeset viewer.