From d2b87bb0864d90829df89836f204c255cf37a3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salvador=20Cu=C3=B1at?= Date: Wed, 20 Mar 2013 00:45:25 +0100 Subject: [PATCH] Fix error while translating base of height calculation in print function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 92.5 is wrong the correct divisor is its inverse number 108.1 Signed-off-by: Salvador Cuñat Signed-off-by: Dirk Hohndel --- print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/print.c b/print.c index eddb75007..bf1ef9f9d 100644 --- a/print.c +++ b/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()