mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Use ’force’ option in ‘mergePaths’ only for paths with same attributes
This commit is contained in:
@ -58,7 +58,7 @@ exports.fn = function(item, params) {
|
||||
prevPathJS = path2js(prevContentItem),
|
||||
curPathJS = path2js(contentItem);
|
||||
|
||||
if (params.force || equalData && !intersects(prevPathJS, curPathJS)) {
|
||||
if (equalData && (params.force || !intersects(prevPathJS, curPathJS))) {
|
||||
js2path(prevContentItem, prevPathJS.concat(curPathJS), params);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user