Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 8d7e831

Browse files
committed
Add default to orientation check.
1 parent 32d6271 commit 8d7e831

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/views/itemEditVw.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ module.exports = baseVw.extend({
481481
case 6: ctx.rotate(0.5 * Math.PI); ctx.translate(0, -imgH); break;
482482
case 7: ctx.rotate(0.5 * Math.PI); ctx.translate(imgW, -imgH); ctx.scale(-1, 1); break;
483483
case 8: ctx.rotate(-0.5 * Math.PI); ctx.translate(-imgW, 0); break;
484+
default: // do nothing
484485
}
485486
ctx.drawImage(newImage, 0, 0, imgW, imgH);
486487
dataURI = canvas.toDataURL('image/jpeg', 0.7);

0 commit comments

Comments
 (0)