diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2013-03-20 00:45:25 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-19 19:16:15 -0700 |
commit | d2b87bb0864d90829df89836f204c255cf37a3ad (patch) | |
tree | 3204f46280110134a80c7411ebd6630740c4b3a9 /print.c | |
parent | c9af18b9cdda59fff167e55fba45c6fa4f673af9 (diff) | |
download | subsurface-d2b87bb0864d90829df89836f204c255cf37a3ad.tar.gz |
Fix error while translating base of height calculation in print function
92.5 is wrong the correct divisor is its inverse number 108.1
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -652,9 +652,9 @@ static void print(int divenr, cairo_t *cr, double x, double y, double w, /* 7.5% for the header, 92.5% for the rest */ double dive_header_height = h * 0.15; - double dive_tanks_height = h * ((double) print_options.tanks_height / 92.5 * 2); - double dive_notes_height = h * ((double) print_options.notes_height / 92.5 * 2); - double dive_profile_height = h * ((double) print_options.profile_height / 92.5 * 2); + double dive_tanks_height = h * ((double) print_options.tanks_height / 108.1 * 2); + double dive_notes_height = h * ((double) print_options.notes_height / 108.1 * 2); + double dive_profile_height = h * ((double) print_options.profile_height / 108.1 * 2); if (!print_options.notes_up) PROFILE_BLOCK() |