From d3e8b69cc47dd67f163f87a08fd4c4f9beabbd01 Mon Sep 17 00:00:00 2001 From: Ivan Lanin Date: Thu, 2 Jan 2014 01:30:57 +0700 Subject: [PATCH] Remove (int) since there's a possibility for fraction --- Classes/PHPWord/Style/Paragraph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PHPWord/Style/Paragraph.php b/Classes/PHPWord/Style/Paragraph.php index 628f9791..d7e7f508 100755 --- a/Classes/PHPWord/Style/Paragraph.php +++ b/Classes/PHPWord/Style/Paragraph.php @@ -103,10 +103,10 @@ class PHPWord_Style_Paragraph public function setStyleValue($key, $value) { if ($key == '_indent') { - $value = (int)$value * 720; // 720 twips per indent + $value = $value * 720; // 720 twips per indent } if ($key == '_hanging') { - $value =(int)$value * 720; + $value = $value * 720; } if ($key == '_spacing') { $value += 240; // because line height of 1 matches 240 twips