Remove (int) since there's a possibility for fraction

This commit is contained in:
Ivan Lanin 2014-01-02 01:30:57 +07:00
parent 72e8f3fccf
commit d3e8b69cc4
1 changed files with 2 additions and 2 deletions

View File

@ -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