From 26effd1def270c36f7c5d34c478438b594f24119 Mon Sep 17 00:00:00 2001 From: Simon MacDonald Date: Tue, 8 Jan 2013 15:21:51 -0500 Subject: [PATCH] Test for correctOrientation not rotate=0 when determining if we are in the special case where the image should just be retureturned to the user without modification. --- framework/src/org/apache/cordova/CameraLauncher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java index 49a68c03..f9edd10f 100755 --- a/framework/src/org/apache/cordova/CameraLauncher.java +++ b/framework/src/org/apache/cordova/CameraLauncher.java @@ -322,7 +322,8 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect } // If all this is true we shouldn't compress the image. - if (this.targetHeight == -1 && this.targetWidth == -1 && this.mQuality == 100 && rotate == 0) { + if (this.targetHeight == -1 && this.targetWidth == -1 && this.mQuality == 100 && + !this.correctOrientation) { writeUncompressedImage(uri); this.callbackContext.success(uri.toString());