Skip to content

Commit

Permalink
fix Restrict empty frame definition
Browse files Browse the repository at this point in the history
  • Loading branch information
pchiorean committed Mar 14, 2022
1 parent 937f8db commit 0d38de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cleanup/DocCleanup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ app.doScript(function () {
var item;
var items = doc.allPageItems;
while ((item = items.shift())) {
if (/Oval|Rectangle|Polygon/.test(item.constructor.name) && item.allPageItems.length === 0)
if (/Oval|Rectangle|Polygon/.test(item.constructor.name)
&& item.allPageItems.length === 0
&& item.strokeWeight === 0)
item.contentType = ContentType.GRAPHIC_TYPE;
}
},
Expand Down

0 comments on commit 0d38de1

Please sign in to comment.