mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Corrects start and end pressure in HTML export
The start and end pressures were reported the wrong way. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e5c5ee74f0
commit
62c09bc099
1 changed files with 4 additions and 4 deletions
|
@ -43,15 +43,15 @@ static void put_cylinder_HTML(struct membuffer *b, struct dive *dive)
|
|||
put_pressure(b, cylinder->type.workingpressure, "\"WPressure\":\"", " bar\",");
|
||||
|
||||
if (cylinder->start.mbar) {
|
||||
put_milli(b, "\"EPressure\":\"", cylinder->start.mbar, " bar\",");
|
||||
put_milli(b, "\"SPressure\":\"", cylinder->start.mbar, " bar\",");
|
||||
} else {
|
||||
write_attribute(b, "EPressure", "--");
|
||||
write_attribute(b, "SPressure", "--");
|
||||
}
|
||||
|
||||
if (cylinder->end.mbar) {
|
||||
put_milli(b, "\"SPressure\":\"", cylinder->end.mbar, " bar\",");
|
||||
put_milli(b, "\"EPressure\":\"", cylinder->end.mbar, " bar\",");
|
||||
} else {
|
||||
write_attribute(b, "SPressure", "--");
|
||||
write_attribute(b, "EPressure", "--");
|
||||
}
|
||||
|
||||
if (cylinder->gasmix.o2.permille) {
|
||||
|
|
Loading…
Add table
Reference in a new issue