From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Mon, 6 Mar 2023 14:12:58 +0000 (-0700) Subject: correct input validation for interpolate time option. (#1025) X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~1^2~114 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=811efadd02b9d950d00544ab0dcff303d5ba4568;p=gpsbabel.git correct input validation for interpolate time option. (#1025) * fix input validation on interpolate time option. * update filter info for interpolate time option. --- diff --git a/interpolate.h b/interpolate.h index 99b3ea147..5aabe1aa2 100644 --- a/interpolate.h +++ b/interpolate.h @@ -52,7 +52,7 @@ private: QVector args = { { "time", &opt_time, "Time interval in seconds", nullptr, - ARGTYPE_BEGIN_EXCL | ARGTYPE_BEGIN_REQ | ARGTYPE_INT, + ARGTYPE_BEGIN_EXCL | ARGTYPE_BEGIN_REQ | ARGTYPE_FLOAT, "0", nullptr, nullptr }, { diff --git a/reference/filter1.txt b/reference/filter1.txt index 8e90e9306..cab7d2b7c 100644 --- a/reference/filter1.txt +++ b/reference/filter1.txt @@ -21,7 +21,7 @@ option radius nosort Inhibit sort by distance to center boolean https://www.g option radius maxcount Output no more than this number of points integer 1 https://www.gpsbabel.org/WEB_DOC_DIR/filter_radius.html#fmt_radius_o_maxcount option radius asroute Put resulting waypoints in route of this name string https://www.gpsbabel.org/WEB_DOC_DIR/filter_radius.html#fmt_radius_o_asroute interpolate Interpolate between trackpoints https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html -option interpolate time Time interval in seconds integer 0 https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html#fmt_interpolate_o_time +option interpolate time Time interval in seconds float 0 https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html#fmt_interpolate_o_time option interpolate distance Distance interval in miles or kilometers string https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html#fmt_interpolate_o_distance option interpolate route Interpolate routes instead boolean https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html#fmt_interpolate_o_route height Manipulate altitudes https://www.gpsbabel.org/WEB_DOC_DIR/filter_height.html