From 39bc78d665d7b908b15c4f0734cdb337094d1785 Mon Sep 17 00:00:00 2001 From: losinshi Date: Mon, 18 Sep 2006 09:59:10 +0000 Subject: [PATCH] chart Fixed: Fix of y-Labels git-svn-id: file:///home/jan/tmp/wetterstation/trunk@107 dd492736-c11a-0410-ad51-8c26713eaf7f --- cronjob/chart/image_file/image_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronjob/chart/image_file/image_data.c b/cronjob/chart/image_file/image_data.c index 8e01483..6a35619 100644 --- a/cronjob/chart/image_file/image_data.c +++ b/cronjob/chart/image_file/image_data.c @@ -120,7 +120,7 @@ label_list_ptr get_y_label_list(int c_hight, int padding){ * daher den Zaehler um eins erhöhen und wenn dabei ueber * den Bereich hinaus, dann wieder eins runter */ num++; - if (((temp + (num - 1)) * interval) > (real_max - 1)) + if ((temp + ((num - 1) * interval)) > (real_max - 1)) num--; /* Puffer fuer die Labels */