Remove (int) since there's a possibility for fraction
This commit is contained in:
parent
72e8f3fccf
commit
d3e8b69cc4
@ -103,10 +103,10 @@ class PHPWord_Style_Paragraph
|
|||||||
public function setStyleValue($key, $value)
|
public function setStyleValue($key, $value)
|
||||||
{
|
{
|
||||||
if ($key == '_indent') {
|
if ($key == '_indent') {
|
||||||
$value = (int)$value * 720; // 720 twips per indent
|
$value = $value * 720; // 720 twips per indent
|
||||||
}
|
}
|
||||||
if ($key == '_hanging') {
|
if ($key == '_hanging') {
|
||||||
$value =(int)$value * 720;
|
$value = $value * 720;
|
||||||
}
|
}
|
||||||
if ($key == '_spacing') {
|
if ($key == '_spacing') {
|
||||||
$value += 240; // because line height of 1 matches 240 twips
|
$value += 240; // because line height of 1 matches 240 twips
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user