The lines in the intelligent scrollbar are off by one
Summary
The lines for the intelligent scrollbar are all off by one.
Steps to reproduce
- Open any capture file, preferably one with a small number of packets (say, six) that can be colorized differently.
- Ensure that the scrollbar appears by shrinking the packet list.
- Colorize some of the packets, but not all.
What is the current bug behavior?
The colored lines in the minimap are all off by one. There is no colored bar for the first packet. Clicking on the first packet highlights the colored bar fo the second packet. There is an uncolored line at the bottom corresponding to the last packet that can never be colored in. To navigate to a packet, you must click the bar off by one.
What is the expected correct behavior?
The colored lines in intelligent scrollbar should correspond to the packets.
Sample capture file
Qbu_capture_02012023_174419.pcap Set DLT USER 0 to eth_withfcs
to view. Alternate packets can be easily colored.
Relevant logs and/or screenshots
Build information
Version 4.0.2 (Git commit 415456d1).
Compiled (64-bit) using GCC 12.2.1 20221121 (Red Hat 12.2.1-4), with GLib 2.74.1, with PCRE2, with zlib 1.2.12, with Qt 6.4.1, with libpcap, with POSIX capabilities (Linux), with libnl 3, with Lua 5.1.5, with GnuTLS 3.7.8 and PKCS #11 (closed) support, with Gcrypt 1.10.1-unknown, with Kerberos (MIT), with MaxMind, with nghttp2 1.51.0, without brotli, without LZ4, with Zstandard, without Snappy, without libxml2, with libsmi 0.4.8, with QtMultimedia, without automatic updates, with SpeexDSP (using bundled resampler), without Minizip, with binary plugins.
Running on Linux 6.0.15-300.fc37.x86_64, with AMD Ryzen 5 5600X 6-Core Processor (with SSE4.2), with 15899 MB of physical memory, with GLib 2.74.1, with PCRE2 10.40 2022-04-14, with zlib 1.2.12, with Qt 6.4.1, with libpcap 1.10.2 (with TPACKET_V3), with c-ares 1.17.2, with GnuTLS 3.7.8, with Gcrypt 1.10.1-unknown, with nghttp2 1.51.0, with Zstandard 1.5.2, with libsmi 0.4.8, with light display mode, without HiDPI, with LC_TYPE=en_US.UTF-8, binary plugins supported.