Browse Source

Issue error if interpolate filter has no routes or tracks to operate on.

tags/gpsbabel_1_5_4
Robert Lipe 3 years ago
parent
commit
26cc1acbab
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      interpolate.cc

+ 5
- 0
interpolate.cc View File

@@ -74,6 +74,11 @@ interpfilt_process(void)
track_backup(&count, &backuproute);
route_flush_all_tracks();
}

if (count == 0) {
fatal(MYNAME ": Found no routes or tracks to operate on.\n");
}

QUEUE_FOR_EACH(backuproute, elem, tmp) {
route_head* rte_old = (route_head*)elem;


Loading…
Cancel
Save