From 73ec80a4558c9d9b31e9fd537c1959532fddd606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 6 Jun 2014 14:35:50 +0200 Subject: [PATCH] Return integer when we claim so MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/Font.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Font.class.php b/libraries/Font.class.php index b4c2024e09..3fdfda67cb 100644 --- a/libraries/Font.class.php +++ b/libraries/Font.class.php @@ -139,8 +139,8 @@ class PMA_Font $modifier = 1.23; break; } - $textWidth = $count*$fontSize; - return ceil($textWidth*$modifier); + $textWidth = $count * $fontSize; + return (int)ceil($textWidth * $modifier); } } ?>