Skip to content

Commit

Permalink
FIX: Trim Each Layer #124
Browse files Browse the repository at this point in the history
  • Loading branch information
hwalter committed Nov 27, 2018
1 parent fc62bb7 commit 69a84ec
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Export Layers To Files (Fast).jsx
Expand Up @@ -457,24 +457,17 @@ function exportLayers(exportLayerTarget, progressBarWindow) {

if (folderSafe) {

storeHistory();

if (prefs.scale)
scaleImage();

if (prefs.padding)
addPadding();

saveImage(fileName);

restoreHistory();

++retVal.count;

}

if (prefs.trim == TrimPrefType.INDIVIDUAL) {
//undo(doc);
if (prefs.trim == TrimPrefType.INDIVIDUAL || folderSafe) {
restoreHistory()
}

Expand Down

1 comment on commit 69a84ec

@antipalindrome
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dev note:
The storeHistory(); I removed was causing issues because it was being called after the document had trimmed, meaning it was saving the trimmed state, which it shouldn't do, as it needs to reevaluate the trim area every time.

Please sign in to comment.