Skip to content

Commit 0e03232

Browse files
devX2712Progi1984
authored andcommitted
BUGFIX Forgot clone for effect shape
BUGFIX Forgot clone for effect shape
1 parent 7a31dbb commit 0e03232

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PhpPresentation/AbstractShape.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ public function __clone()
158158
if (isset($this->hyperlink)) {
159159
$this->hyperlink = clone $this->hyperlink;
160160
}
161+
// Clone each effect
162+
if (isset($this->effectCollection)) {
163+
foreach ($this->effectCollection as &$effect) {
164+
$effect = clone $effect;
165+
}}
161166
}
162167

163168
/**

0 commit comments

Comments
 (0)