]> sigrok.org Git - pulseview.git/commit
TraceTreeItemOwner: Change behavior for empty containers
authorSoeren Apel <redacted>
Sun, 3 Apr 2016 18:34:50 +0000 (20:34 +0200)
committerSoeren Apel <redacted>
Sun, 3 Apr 2016 18:34:50 +0000 (20:34 +0200)
commitd9177e6cfafcbb3bdca8f8529e7c74f6a56d0a1a
treed4c81ee18bdea08df6fb9b11fff71082eee44d3b
parent076eefa4ac3ae038bbeb7b9ac3175d2159bec2d1
TraceTreeItemOwner: Change behavior for empty containers

An empty TraceTreeItemOwner's v_extents are no longer
[INT_MAX, INT_MIN] but [0, 0] instead. As new items were added
relative to the view's own v_extents, items were added at
positions close to the over-/underflow margin. This messed up
the scrollbar among other things. Returning [0, 0] instead
allows for better handling of such cases.
pv/view/tracetreeitemowner.cpp