Skip to content

Commit 0c7593b

Browse files
authored
Merge pull request #582 from SSchwaiger/patch-2
A chart object can also be added to a table cell
2 parents 05e2f1b + 13a1c9f commit 0c7593b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Element/AbstractContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private function checkValidity($method)
212212
'Title' => array('Section'),
213213
'TOC' => array('Section'),
214214
'PageBreak' => array('Section'),
215-
'Chart' => array('Section'),
215+
'Chart' => array('Section', 'Cell'),
216216
);
217217

218218
// Special condition, e.g. preservetext can only exists in cell when

0 commit comments

Comments
 (0)