projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
51f9e62
)
PHP 8. Conversion from float to int loses precision in file: line 1391. Fixed.
author
Joe
<joe.hunt.consulting@gmail.com>
Tue, 20 Sep 2022 21:58:42 +0000
(23:58 +0200)
committer
Joe
<joe.hunt.consulting@gmail.com>
Tue, 20 Sep 2022 21:58:42 +0000
(23:58 +0200)
reporting/includes/class.graphic.inc
patch
|
blob
|
history
diff --git
a/reporting/includes/class.graphic.inc
b/reporting/includes/class.graphic.inc
index 834ca37246c432f2c42b13c49e54a9fbedf62385..1c43674a58dea4142d36eace25ba1471340bc4c7 100644
(file)
--- a/
reporting/includes/class.graphic.inc
+++ b/
reporting/includes/class.graphic.inc
@@
-1228,7
+1228,7
@@
class Chart
{
$digits = strlen(round($this->max_value));
$interval = pow(10, ($digits-1));
{
$digits = strlen(round($this->max_value));
$interval = pow(10, ($digits-1));
- $this->higher_value = round(($this->max_value - ($this->max_value % $interval) + $interval), 1);
+ $this->higher_value = round(($this->max_value - (
(int)
$this->max_value % $interval) + $interval), 1);
$this->higher_value_str = $this->number_formated($this->higher_value, $this->dec1);
}
$this->higher_value_str = $this->number_formated($this->higher_value, $this->dec1);
}
@@
-1388,7
+1388,7
@@
class Chart
$size += 2;
$string = str_replace(" ", " ", $string);
}
$size += 2;
$string = str_replace(" ", " ", $string);
}
- imagettftext($img, $size, $angle,
$x
, $y + $alt, $col, $this->fontfile, $string);
+ imagettftext($img, $size, $angle,
intval($x)
, $y + $alt, $col, $this->fontfile, $string);
}
function hex2rgb($hex)
}
function hex2rgb($hex)