Skip to content

Commit d3e8b69

Browse files
committed
Remove (int) since there's a possibility for fraction
1 parent 72e8f3f commit d3e8b69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/PHPWord/Style/Paragraph.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ public function __construct()
103103
public function setStyleValue($key, $value)
104104
{
105105
if ($key == '_indent') {
106-
$value = (int)$value * 720; // 720 twips per indent
106+
$value = $value * 720; // 720 twips per indent
107107
}
108108
if ($key == '_hanging') {
109-
$value =(int)$value * 720;
109+
$value = $value * 720;
110110
}
111111
if ($key == '_spacing') {
112112
$value += 240; // because line height of 1 matches 240 twips

0 commit comments

Comments
 (0)