summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r--src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java b/src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java
index 77e78fe7d..24586e718 100644
--- a/src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java
+++ b/src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java
@@ -18,12 +18,11 @@ package com.android.gallery3d.filtershow.imageshow;
import android.graphics.Bitmap;
import android.graphics.Matrix;
+import android.graphics.Rect;
import android.graphics.RectF;
import com.android.gallery3d.filtershow.filters.ImageFilterGeometry;
-import java.util.Arrays;
-
public class GeometryMetadata {
// Applied in order: rotate, crop, scale.
// Do not scale saved image (presumably?).
@@ -59,7 +58,11 @@ public class GeometryMetadata {
if (mStraightenRotation != 0) {
return true;
}
- if (!mCropBounds.equals(mPhotoBounds)) {
+ Rect cropBounds = new Rect();
+ mCropBounds.roundOut(cropBounds);
+ Rect photoBounds = new Rect();
+ mPhotoBounds.roundOut(photoBounds);
+ if (!cropBounds.equals(photoBounds)) {
return true;
}
if (!mFlip.equals(FLIP.NONE)){