bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-10-10 05:45:55 +03:00
parent 5b2d7ddb85
commit 0d046bb90e

View File

@ -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