summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Amit Chaudhuri <amit.k.chaudhuri@gmail.com>2013-05-10 23:56:05 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-10 16:01:17 -0700
commit97a044d41f67757de1e5bd0694f6502af1be4f4c (patch)
tree72e6b235c2dd3ff0bb4da33418a904e4f79a73ba /profile.c
parent1245c232dba019d5a87102b93c1a011e0998b47c (diff)
downloadsubsurface-97a044d41f67757de1e5bd0694f6502af1be4f4c.tar.gz
Tweaks to maintab
Align statistics tab labels as per infotab. Amend helper function to show degree symbol for temp measurements. Change order of member initialisation list to match order of decl (ProfileGraphicsView::ProfileGraphicsView) Signed-off-by: Amit Chaudhuri <amit.k.chaudhuri@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index ed5d01850..276641bb2 100644
--- a/profile.c
+++ b/profile.c
@@ -263,7 +263,7 @@ int get_cylinder_pressure_range(struct graphics_context *gc)
return FALSE;
while (gc->pi.endtempcoord <= SCALEY(gc, gc->pi.minpressure - (gc->topy) * 0.1))
- gc->bottomy -= gc->topy * 0.1;
+ gc->bottomy -= gc->topy * 0.1 * gc->maxy/abs(gc->maxy);
return TRUE;
}