Skip to content

Commit 72cf409

Browse files
author
Xiang
committed
Reader/Word2007/AbstractPart.php::readParagraph textbox居中样式丢失修复
1 parent 5dd0216 commit 72cf409

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PhpWord/Reader/Word2007/AbstractPart.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ protected function readParagraph(XMLReader $xmlReader, DOMElement $domNode, $par
280280
}
281281
}
282282
}
283+
if (is_array($paragraphStyle) && count($paragraphStyle)>0){
284+
$shapeStyle = array_merge($shapeStyle, $paragraphStyle);
285+
}
283286
$textBox = $parent->addTextBox($shapeStyle);
284287
$nodes = $xmlReader->getElements('w:r/w:pict/v:shape/v:textbox/w:txbxContent/*', $domNode);
285288
foreach ($nodes as $_node){

0 commit comments

Comments
 (0)