Skip to content

Commit 5c8e100

Browse files
committed
Bugfix PHPOffice#280: Table inside vertical border does not rendered properly
1 parent 384107e commit 5c8e100

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ This release added form fields (textinput, checkbox, and dropdown), drawing shap
2525
- Fix rare PclZip/realpath/PHP version problem - @andrew-kzoo GH-261
2626
- `addHTML` encoding and ampersand fixes for PHP 5.3 - @bskrtich GH-270
2727
- Page breaks on titles and tables - @ivanlanin GH-274
28+
- Table inside vertical border does not rendered properly - @ivanlanin GH-280
2829

2930
### Deprecated
3031

src/PhpWord/Writer/Word2007/Style/MarginBorder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function write()
5555
$xmlWriter = $this->getXmlWriter();
5656

5757
$sides = array('top', 'left', 'right', 'bottom', 'insideH', 'insideV');
58-
$sizeCount = count($this->sizes) - 1;
58+
$sizeCount = count($this->sizes);
5959

6060
for ($i = 0; $i < $sizeCount; $i++) {
6161
if ($this->sizes[$i] !== null) {

0 commit comments

Comments
 (0)