From be3c74820128f91460a72a5a44c06509201497df Mon Sep 17 00:00:00 2001 From: zhanglong7 Date: Sun, 4 Dec 2022 21:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD=EF=BC=8C=E5=89=8D=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E5=B7=B2=E7=BB=8F=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E8=BF=87=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/github/gzuliyujiang/imagepicker/CropOverlayView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImagePicker/src/main/java/com/github/gzuliyujiang/imagepicker/CropOverlayView.java b/ImagePicker/src/main/java/com/github/gzuliyujiang/imagepicker/CropOverlayView.java index 25a4fd40..5e499fd0 100644 --- a/ImagePicker/src/main/java/com/github/gzuliyujiang/imagepicker/CropOverlayView.java +++ b/ImagePicker/src/main/java/com/github/gzuliyujiang/imagepicker/CropOverlayView.java @@ -517,7 +517,7 @@ private void initCropWindow() { rect.right = Math.min(rightLimit, rect.right); rect.bottom = Math.min(bottomLimit, rect.bottom); - } else if (mFixAspectRatio && rightLimit > leftLimit && bottomLimit > topLimit) { + } else if (mFixAspectRatio) { // If the image aspect ratio is wider than the crop aspect ratio, // then the image height is the determining initial length. Else, vice-versa.