mirror of
https://github.com/svg/svgo.git
synced 2025-08-01 18:46:52 +03:00
plugins/moveElemsAttrsToGroup: additional check for transform attr
This commit is contained in:
@ -54,7 +54,7 @@ exports.moveElemsAttrsToGroup = function(item) {
|
||||
g.removeAttr(name);
|
||||
|
||||
if (name === 'transform') {
|
||||
if (!hasTransform) {
|
||||
if (!hasTransform && item.hasAttr('transform')) {
|
||||
item.attr('transform').value += ' ' + intersection[name].value;
|
||||
hasTransform = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user