Skip to content

Commit

Permalink
Merge pull request Yalantis#245 from mapyo/fix-should-crop
Browse files Browse the repository at this point in the history
When a square image is rotated by 90 (180, 270) degrees, it is not croped.
  • Loading branch information
severianremi authored Aug 10, 2017
2 parents f9f75f7 + 32eb2b4 commit 5af24b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ private boolean shouldCrop(int width, int height) {
|| Math.abs(mCropRect.left - mCurrentImageRect.left) > pixelError
|| Math.abs(mCropRect.top - mCurrentImageRect.top) > pixelError
|| Math.abs(mCropRect.bottom - mCurrentImageRect.bottom) > pixelError
|| Math.abs(mCropRect.right - mCurrentImageRect.right) > pixelError;
|| Math.abs(mCropRect.right - mCurrentImageRect.right) > pixelError
|| mCurrentAngle != 0;
}

@SuppressWarnings("JniMissingFunction")
Expand Down

0 comments on commit 5af24b3

Please sign in to comment.