Merge pull request #327 from pscheit/bugfix-margin-border-develop

bugfix: specific borders were not written correctly in word2007
This commit is contained in:
Progi1984 2014-08-04 10:50:11 +02:00
commit 9c66921a60
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];