summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2011-09-29 17:50:56 +0800
committerOwen Lin <owenlin@google.com>2011-09-29 17:50:56 +0800
commit2c3c51758a514893280a9ce320f2b280c325897b (patch)
tree783106320d18fbea4f6c11d2cc2c0d48a0c8458c /src
parent338d029f0391b781bd6d1ee5ac1843fde1808f9a (diff)
downloadandroid_packages_apps_Gallery2-2c3c51758a514893280a9ce320f2b280c325897b.tar.gz
android_packages_apps_Gallery2-2c3c51758a514893280a9ce320f2b280c325897b.tar.bz2
android_packages_apps_Gallery2-2c3c51758a514893280a9ce320f2b280c325897b.zip
Rotate the image according to FullImageRotation.
Change-Id: I2c1285aa50b71e0efdbe3c4c50264e42c7b9ab97 fix: 5389974
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/app/CropImage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/CropImage.java b/src/com/android/gallery3d/app/CropImage.java
index 03cd48f57..14d8be0ef 100644
--- a/src/com/android/gallery3d/app/CropImage.java
+++ b/src/com/android/gallery3d/app/CropImage.java
@@ -541,7 +541,7 @@ public class CropImage extends AbstractGalleryActivity {
return result;
}
- int rotation = mMediaItem.getRotation();
+ int rotation = mMediaItem.getFullImageRotation();
rotateRectangle(rect, mCropView.getImageWidth(),
mCropView.getImageHeight(), 360 - rotation);
rotateRectangle(dest, outputX, outputY, 360 - rotation);