From: robertl Date: Fri, 1 Oct 2004 03:29:23 +0000 (+0000) Subject: Warn if attempting to read tracks or routes into xcsv. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~3901 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=84c4ed25a2834617ec94d8af875e9944e0a85fbd;p=gpsbabel.git Warn if attempting to read tracks or routes into xcsv. --- diff --git a/gpsbabel/xcsv.c b/gpsbabel/xcsv.c index 93aa9ba21..80f2ff58f 100644 --- a/gpsbabel/xcsv.c +++ b/gpsbabel/xcsv.c @@ -495,6 +495,10 @@ xcsv_rd_init(const char *fname) xcsv_read_style(styleopt); } + if (global_opts.masked_objective & (TRKDATAMASK|RTEDATAMASK)) { + warning(MYNAME "attempting to read %s as a track or route. Converting to waypoints.\n", fname); + } + xcsv_file.xcsvfp = xfopen(fname, "r", MYNAME); }