From: robertl Date: Tue, 11 Aug 2009 14:52:50 +0000 (+0000) Subject: Write description in Coastal Explorer. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~199^2~164 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=10df66dd09fcb42ae6abf1f8ce00cbf92d5778e7;p=gpsbabel.git Write description in Coastal Explorer. --- diff --git a/coastexp.c b/coastexp.c index 691661275..73f408d71 100755 --- a/coastexp.c +++ b/coastexp.c @@ -588,6 +588,9 @@ ce_waypt_pr(const waypoint *wp) sprintf(xml_buffer, "%3.6f %c %3.6f %c", latitude, NorS, longitude, EorW); write_xml_entity(ofd, "\t\t", "Position", xml_buffer); write_optional_xml_entity(ofd, "\t\t", "Name", wp->shortname); + if (wp->description && wp->shortname && + strcmp(wp->description, wp->shortname)) + write_optional_xml_entity(ofd, "\t\t", "Description", wp->description); } static char * diff --git a/reference/coastexp.ref2 b/reference/coastexp.ref2 index b9385cbde..7344feaab 100644 --- a/reference/coastexp.ref2 +++ b/reference/coastexp.ref2 @@ -135,6 +135,7 @@ 34.884641 N 120.652026 W PTSALENT + A description of the Point Sal Entrance mark 34.896555 N 120.649124 W diff --git a/reference/coastexp.ref4 b/reference/coastexp.ref4 index b9385cbde..7344feaab 100644 --- a/reference/coastexp.ref4 +++ b/reference/coastexp.ref4 @@ -135,6 +135,7 @@ 34.884641 N 120.652026 W PTSALENT + A description of the Point Sal Entrance mark 34.896555 N 120.649124 W