From 0d046bb90e59b01cb4b7b5648af0294fd89ccd5d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 10 Oct 2016 05:45:55 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/imagegrid/images.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui (gen4)/imagegrid/images.js b/ui (gen4)/imagegrid/images.js index d1910145..1cce5a33 100755 --- a/ui (gen4)/imagegrid/images.js +++ b/ui (gen4)/imagegrid/images.js @@ -604,11 +604,16 @@ module.ImagesPrototype = { var o = direction == 'cw' || direction == 'ccw' ? module.calcRelativeRotation(img.orientation, direction) : direction*1 + + /* XXX seting orientation to undefined does not save correctly (BUG?) if(o == 0){ delete img.orientation } else { img.orientation = o } + //*/ + img.orientation = o + // account for proportions... //that.correctImageProportionsForRotation(img) // XXX this is a bit of an overkill but it will update the