Skip to content

Commit

Permalink
Don't move transforms into referenced group items
Browse files Browse the repository at this point in the history
Fixes #532
  • Loading branch information
GreLI committed Apr 25, 2016
1 parent 9b92561 commit 7d556d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/moveGroupAttrsToElems.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exports.fn = function(item) {
return ~referencesProps.indexOf(attr.name) && ~attr.value.indexOf('url(');
}) &&
item.content.every(function(inner) {
return inner.isElem(pathElems);
return inner.isElem(pathElems) && !inner.hasAttr('id');
})
) {
item.content.forEach(function(inner) {
Expand Down
15 changes: 15 additions & 0 deletions test/plugins/moveGroupAttrsToElems.06.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d556d0

Please sign in to comment.