mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Align last temperature text end of temperature plot line
The temperature plot line was drawn to the end of the dive, but the last temperature plot text was printed near the last temperature *sample*. This was most visible on dives/test27.xml where two "20˚C" were printed on top of each other at the start of the dive, while nothing was printed at the end. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f334175bdd
commit
3fd6fd6e5b
1 changed files with 1 additions and 1 deletions
|
@ -914,11 +914,11 @@ static void plot_temperature_text(struct graphics_context *gc, struct plot_info
|
|||
for (i = 0; i < pi->nr; i++) {
|
||||
struct plot_data *entry = pi->entry+i;
|
||||
int mkelvin = entry->temperature;
|
||||
sec = entry->sec;
|
||||
|
||||
if (!mkelvin)
|
||||
continue;
|
||||
last_temperature = mkelvin;
|
||||
sec = entry->sec;
|
||||
/* don't print a temperature
|
||||
* if it's been less than 5min and less than a 2K change OR
|
||||
* if it's been less than 2min OR if the change from the
|
||||
|
|
Loading…
Add table
Reference in a new issue