]> sigrok.org Git - pulseview.git/commit
Ruler: Fix tick mark calculation
authorJens Steinhauser <redacted>
Sun, 30 Aug 2015 12:16:11 +0000 (14:16 +0200)
committerUwe Hermann <redacted>
Fri, 4 Sep 2015 10:54:52 +0000 (12:54 +0200)
commit17b1aa177651aae05bd94d3310ef7e8e25ec9899
tree5fb0604685b45128e691e56d413e47b762226b25
parentd001f416aec37d5b13b804dec9ee9e1c011ffabb
Ruler: Fix tick mark calculation

Prior to this change, due to floating point errors the loop that
calculates the tick mark positions could loop thousands of iterations
while zooming in at high time values, blocking the whole UI and leading
to distorted text in the end.
pv/view/ruler.cpp