Skip to content

Commit

Permalink
Fix shouldCrop
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
mapyo committed Dec 16, 2016
1 parent 5535c7f commit 32eb2b4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,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 32eb2b4

Please sign in to comment.