diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-09-22 23:21:01 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-09-23 21:05:35 -0700 |
commit | 0c9e6f9acc055f37699ef336f880346fef6129ca (patch) | |
tree | 83530245db5b7e19e3c65f8aaa1cca0024dba45f /qt-ui/profilegraphics.cpp | |
parent | dba16202c498d4432bc20181b0084f54b7abdba1 (diff) | |
download | subsurface-0c9e6f9acc055f37699ef336f880346fef6129ca.tar.gz |
Remove o2/he from plot_data and fix gas plot text
plot_data.o2 and plot_data.he was wrong for all dives, due to that
cylinderindex was set right first in populate_pressure_information, and
thus those two contained bogus information.
This makes the plot-text use cylinderindex-lookup as everything else.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r-- | qt-ui/profilegraphics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index fe5d79b4e..07326f475 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -519,7 +519,8 @@ void ProfileGraphicsView::plot_cylinder_pressure_text() if (!seen_cyl[cyl]) { plot_pressure_value(mbar, entry->sec, LEFT, BOTTOM); plot_gas_value(mbar, entry->sec, LEFT, TOP, - entry->o2, entry->he); + get_o2(&dive->cylinder[cyl].gasmix), + get_he(&dive->cylinder[cyl].gasmix)); seen_cyl[cyl] = TRUE; } } |