mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-18 00:26:15 +00:00
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>
This commit is contained in:
parent
c9af18b9cd
commit
d2b87bb086
1 changed files with 3 additions and 3 deletions
6
print.c
6
print.c
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue