diff --git a/ui/crop.js b/ui/crop.js index c9989e89..02ed483c 100755 --- a/ui/crop.js +++ b/ui/crop.js @@ -437,5 +437,18 @@ function filterImagesDialog(){ +/*********************************************************************/ + +function setupCrop(viewer){ + return viewer + // reset the crop stack when loading something... + .on('fileStateLoaded', function(){ + CROP_STACK = [] + }) +} +SETUP_BINDINGS.push(setupCrop) + + + /********************************************************************** * vim:set ts=4 sw=4 : */