]> sigrok.org Git - pulseview.git/commit - pv/view/tracetreeitemowner.cpp
RowItem: Fixed v_extents initial conditions
authorSoeren Apel <redacted>
Sat, 13 Dec 2014 10:19:16 +0000 (10:19 +0000)
committerJoel Holdsworth <redacted>
Sat, 13 Dec 2014 10:19:19 +0000 (10:19 +0000)
commit82ba380c459cc3d0d13e2326aa4a9780614a8fde
tree436ffd1c748af6d1312f38006dadbaf9893271d9
parent65c34596346fbf7d25fe2065728b86c207018586
RowItem: Fixed v_extents initial conditions

Using (0, 0) as initializers for the global extent calculation
is suboptimal as it causes the lowest y coordinate to always be 0
when all traces have positive y offsets. When moving all traces
down, the scroll area becomes too large as a result. Using
(INT_MAX, INT_MIN) instead fixes this.
pv/view/rowitemowner.cpp