Skip to content

Commit

Permalink
Merge 9056fd2 into 102a721
Browse files Browse the repository at this point in the history
  • Loading branch information
stristr committed Jun 9, 2018
2 parents 102a721 + 9056fd2 commit 8309733
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/collapseGroups.js
Expand Up @@ -50,7 +50,7 @@ exports.fn = function(item) {
if (g.hasAttr() && g.content.length === 1) {
var inner = g.content[0];

if (inner.isElem() && !inner.hasAttr('id') &&
if (inner.isElem() && !inner.hasAttr('id') && !g.hasAttr('filter') &&
!(g.hasAttr('class') && inner.hasAttr('class')) && (
!g.hasAttr('clip-path') && !g.hasAttr('mask') ||
inner.isElem('g') && !g.hasAttr('transform') && !inner.hasAttr('transform')
Expand Down
15 changes: 15 additions & 0 deletions test/plugins/collapseGroups.16.svg
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 8309733

Please sign in to comment.