mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-02-17 17:01:12 -05:00
Merge pull request #500 from yueyuzhao/issue/499-stamp-camera-fill
Fix clone svg element null pointer
This commit is contained in:
commit
8ab40eb646
1 changed files with 3 additions and 0 deletions
|
@ -805,6 +805,9 @@ export default class SVGTools {
|
|||
var g = SVGTools.createGroup(p, getIdFor('group'));
|
||||
for (var i = 0; i < elem.childElementCount; i++) {
|
||||
var shape = SVGTools.getClonedElement(g, elem.childNodes[i]);
|
||||
if (!shape) {
|
||||
continue;
|
||||
}
|
||||
old.push(elem.childNodes[i].id);
|
||||
newlist.push(shape.id);
|
||||
if (elem.childNodes[i].getAttribute('id').indexOf('Border') > -1) {
|
||||
|
|
Loading…
Reference in a new issue