Skip to content

Commit 6357264

Browse files
Disallow 'fields' option when writing unicsv.
Closes #1042
1 parent d0705d1 commit 6357264

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unicsv.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,10 @@ UnicsvFormat::unicsv_waypt_disp_cb(const Waypoint* wpt)
17051705
void
17061706
UnicsvFormat::wr_init(const QString& fname)
17071707
{
1708+
if (opt_fields) {
1709+
fatal(FatalMsg() << MYNAME <<
1710+
": option 'fields' is not supported on output");
1711+
}
17081712
fout = new gpsbabel::TextStream;
17091713
fout->open(fname, QIODevice::WriteOnly, MYNAME, opt_codec);
17101714
fout->setRealNumberNotation(QTextStream::FixedNotation);

0 commit comments

Comments
 (0)