mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-21 14:39:40 +01:00
Fix implicit conversion from float to int (#387)
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
150e756428
commit
ea9e1c4145
@ -4179,8 +4179,8 @@ class TCPDF {
|
||||
// SHY character will not be printed
|
||||
return (0);
|
||||
}
|
||||
if (isset($this->CurrentFont['cw'][$char])) {
|
||||
$w = $this->CurrentFont['cw'][$char];
|
||||
if (isset($this->CurrentFont['cw'][intval($char)])) {
|
||||
$w = $this->CurrentFont['cw'][intval($char)];
|
||||
} elseif (isset($this->CurrentFont['dw'])) {
|
||||
// default width
|
||||
$w = $this->CurrentFont['dw'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user