Merge pull request #1493 from Patrick64/develop
RTF writer: Round getPageSizeW and getPageSizeH to avoid decimals
This commit is contained in:
commit
586f45efea
@ -10,6 +10,7 @@ v0.16.0 (xx xxx 2018)
|
|||||||
### Fixed
|
### Fixed
|
||||||
- Fix regex in `cloneBlock` function @nicoder #1269
|
- Fix regex in `cloneBlock` function @nicoder #1269
|
||||||
- HTML Title Writer loses text when Title contains a TextRun instead a string. @begnini #1436
|
- HTML Title Writer loses text when Title contains a TextRun instead a string. @begnini #1436
|
||||||
|
- RTF writer: Round getPageSizeW and getPageSizeH to avoid decimals @Patrick64 #1493
|
||||||
|
|
||||||
v0.15.0 (14 Jul 2018)
|
v0.15.0 (14 Jul 2018)
|
||||||
----------------------
|
----------------------
|
||||||
|
|||||||
@ -43,8 +43,8 @@ class Section extends AbstractStyle
|
|||||||
$content .= '\sectd ';
|
$content .= '\sectd ';
|
||||||
|
|
||||||
// Size & margin
|
// Size & margin
|
||||||
$content .= $this->getValueIf($style->getPageSizeW() !== null, '\pgwsxn' . $style->getPageSizeW());
|
$content .= $this->getValueIf($style->getPageSizeW() !== null, '\pgwsxn' . round($style->getPageSizeW()));
|
||||||
$content .= $this->getValueIf($style->getPageSizeH() !== null, '\pghsxn' . $style->getPageSizeH());
|
$content .= $this->getValueIf($style->getPageSizeH() !== null, '\pghsxn' . round($style->getPageSizeH()));
|
||||||
$content .= ' ';
|
$content .= ' ';
|
||||||
$content .= $this->getValueIf($style->getMarginTop() !== null, '\margtsxn' . $style->getMarginTop());
|
$content .= $this->getValueIf($style->getMarginTop() !== null, '\margtsxn' . $style->getMarginTop());
|
||||||
$content .= $this->getValueIf($style->getMarginRight() !== null, '\margrsxn' . $style->getMarginRight());
|
$content .= $this->getValueIf($style->getMarginRight() !== null, '\margrsxn' . $style->getMarginRight());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user