summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2017-08-02 08:53:10 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-07 00:57:58 -0700
commite04ef1df1e2be525fa5bee5d2e849d609a58eb83 (patch)
tree18b20dcb0d313506cb3d108415ba22c8b60b2556 /profile-widget/profilewidget2.cpp
parent3f1a20cbaa53501c66ed41b3a8cda36d2fd53e8e (diff)
downloadsubsurface-e04ef1df1e2be525fa5bee5d2e849d609a58eb83.tar.gz
Fix the overprinting of gas name and pressure value on the profile
When I massaged the code to do multiple gas pressures in commit e1b880f4 ("Profile support for multiple concurrent pressure sensors") some of the Y offsetting code got cut out as being too specific to the old o2pressure code. But I removed a bit too much, leaving the label (gas name) and number (gas pressure) overlapping. This should fix it. If we really care about multiple gas pressure labels overlapping each other, we'll have to revisit this code, but the old two-gas case didn't do a very good job either (both that old code - and this new version - can look very good in particular cases, but there are cases where it won't work so well). So we may need to revisit this eventually, but this gets it looking fine for the normal cases. Reported-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
0 files changed, 0 insertions, 0 deletions