]> sigrok.org Git - pulseview.git/commit
DecodeTrace: Prevent trace height from jumping
authorSoeren Apel <redacted>
Wed, 30 Dec 2015 17:34:47 +0000 (18:34 +0100)
committerUwe Hermann <redacted>
Wed, 30 Dec 2015 22:16:17 +0000 (23:16 +0100)
commiteee89ff865c28854eebdcecbe344f225b9ee366f
tree980e3f54e77a77b2a72df4039b79363222637e5e
parent3370799041d0ee09bf1c7c4f006933778579c037
DecodeTrace: Prevent trace height from jumping

In 506317984393a41000650ccca868f3dd66872a4f, the decode
trace height was made dependent on the number of currently
visible annotation rows.
This however has issues: when zooming in on an area where
there are no annotations, the height of the decode trace
collapses. With this patch, this can't happen anymore as
a new variable keeps track of the maximum number of
annotation rows ever encountered, keeping the decoder
trace height stable.
pv/view/decodetrace.cpp
pv/view/decodetrace.hpp