From 948acbf36621f0f94c5906e78e5889c746cf00be Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 30 Jan 2014 06:07:40 +0400 Subject: [PATCH] bugfix: now crop stack is reset on load... Signed-off-by: Alex A. Naanou --- ui/crop.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 : */