bugfix: specific borders were not written correctly in word2007
This commit is contained in:
parent
61406af166
commit
07e03fc955
|
|
@ -30,6 +30,7 @@ This release added form fields (textinput, checkbox, and dropdown), drawing shap
|
|||
- Page breaks on titles and tables - @ivanlanin GH-274
|
||||
- Table inside vertical border does not rendered properly - @ivanlanin GH-280
|
||||
- `add<elementName>` of container should be case insensitive, e.g. `addToc` should be accepted, not only `addTOC` - @ivanlanin GH-294
|
||||
- Fix specific borders (and margins) were not written correctly in word2007 writer
|
||||
|
||||
### Deprecated
|
||||
|
||||
|
|
|
|||
|
|
@ -59,8 +59,8 @@ class MarginBorder extends AbstractStyle
|
|||
$sides = array('top', 'left', 'right', 'bottom', 'insideH', 'insideV');
|
||||
$sizeCount = count($this->sizes);
|
||||
|
||||
for ($i = 0; $i < $sizeCount; $i++) {
|
||||
if ($this->sizes[$i] !== null) {
|
||||
foreach ($this->sizes as $i => $size) {
|
||||
if ($size !== null) {
|
||||
$color = null;
|
||||
if (isset($this->colors[$i])) {
|
||||
$color = $this->colors[$i];
|
||||
|
|
|
|||
Loading…
Reference in New Issue