Skip to content

Commit

Permalink
Don't pass mask around transform in collapseGroups.
Browse files Browse the repository at this point in the history
Fixes svg#572
  • Loading branch information
GreLI committed Aug 24, 2016
1 parent 1162dac commit 44d6958
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/collapseGroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ exports.fn = function(item) {
var inner = g.content[0];

if (inner.isElem() && !inner.hasAttr('id') && (
!g.hasAttr('clip-path') ||
!g.hasAttr('clip-path') && !g.hasAttr('mask') ||
inner.isElem('g') && !g.hasAttr('transform') && !inner.hasAttr('transform')
)) {
g.eachAttr(function(attr) {
Expand Down
8 changes: 8 additions & 0 deletions test/plugins/collapseGroups.10.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 44d6958

Please sign in to comment.