From: robertl Date: Tue, 21 Sep 2004 18:12:29 +0000 (+0000) Subject: Let waypt_dupe copy desc_short and desc_long so that Mapsource output X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~3909 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f3cb6e2455795592d2ebca39633d1a3d17c48a1b;p=gpsbabel.git Let waypt_dupe copy desc_short and desc_long so that Mapsource output of a PQ doesn't tank the KMA. --- diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index f91b503f2..9b5aa9c05 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -52,6 +52,14 @@ waypt_dupe(const waypoint *wpt) tmp->url_link_text = xstrdup(wpt->url_link_text); if (wpt->icon_descr && wpt->icon_descr_is_dynamic) tmp->icon_descr = xstrdup(wpt->icon_descr); + if (wpt->gc_data.desc_short.utfstring) { + tmp->gc_data.desc_short.utfstring = + xstrdup(tmp->gc_data.desc_short.utfstring); + } + if (wpt->gc_data.desc_long.utfstring) { + tmp->gc_data.desc_long.utfstring = + xstrdup(tmp->gc_data.desc_long.utfstring); + } /* * It's important that this duplicated waypoint not appear * on the master Q.