diff options
author | Jason Uher <jasonuher@users.noreply.github.com> | 2021-07-14 05:48:33 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 07:48:33 -0400 |
commit | 29b07a195e5ab96c551dd6c7fc467ed63a4bf622 (patch) | |
tree | f383027090c3a6661dbe2c3d80dcb12efe91df74 /gr-qtgui | |
parent | usrp_block: fix using 0 as pmt::dict_ref "not_found" parameter (diff) | |
download | gnuradio-29b07a195e5ab96c551dd6c7fc467ed63a4bf622.tar.xz gnuradio-29b07a195e5ab96c551dd6c7fc467ed63a4bf622.zip |
qtgui: bugfix - display tags on the last sample
* qtgui: display tags on the last sample fixes #2775
Signed-off-by: Jason Uher <jason.uher@jhuapl.edu>
Diffstat (limited to 'gr-qtgui')
-rw-r--r-- | gr-qtgui/lib/time_sink_c_impl.cc | 2 | ||||
-rw-r--r-- | gr-qtgui/lib/time_sink_f_impl.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc index e557f2b4e..84579528a 100644 --- a/gr-qtgui/lib/time_sink_c_impl.cc +++ b/gr-qtgui/lib/time_sink_c_impl.cc @@ -548,7 +548,7 @@ int time_sink_c_impl::work(int noutput_items, uint64_t nr = nitems_read(n); std::vector<gr::tag_t> tags; - get_tags_in_range(tags, n, nr, nr + nitems); + get_tags_in_range(tags, n, nr, nr + nitems + 1); for (size_t t = 0; t < tags.size(); t++) { tags[t].offset = tags[t].offset - nr + (d_index - d_start - 1); } diff --git a/gr-qtgui/lib/time_sink_f_impl.cc b/gr-qtgui/lib/time_sink_f_impl.cc index 7bad006d1..f8b179c98 100644 --- a/gr-qtgui/lib/time_sink_f_impl.cc +++ b/gr-qtgui/lib/time_sink_f_impl.cc @@ -539,7 +539,7 @@ int time_sink_f_impl::work(int noutput_items, uint64_t nr = nitems_read(idx); std::vector<gr::tag_t> tags; - get_tags_in_range(tags, idx, nr, nr + nitems); + get_tags_in_range(tags, idx, nr, nr + nitems + 1); for (size_t t = 0; t < tags.size(); t++) { tags[t].offset = tags[t].offset - nr + (d_index - d_start - 1); } |