bugfix: specific borders were not written correctly in word2007

This commit is contained in:
Philipp Scheit 2014-07-15 10:24:36 +02:00
parent 61406af166
commit 07e03fc955
2 changed files with 3 additions and 2 deletions

View File

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

View File

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