Skip to content

Commit 311d05c

Browse files
committed
Merge branch 'fix/imagecropper-aspect-ratio-not-updating-on-image-load' of https://github.com/Arlodotexe/WindowsCommunityToolkit into fix/imagecropper-aspect-ratio-not-updating-on-image-load
2 parents 7c70926 + eaea805 commit 311d05c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Media/ImageCropper/ImageCropper.Logic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ private void UpdateMaskArea(bool animate = false)
526526
/// </summary>
527527
private bool TryUpdateAspectRatio()
528528
{
529-
if (!(KeepAspectRatio && Source != null && IsValidRect(_restrictedSelectRect)))
529+
if (KeepAspectRatio is false || Source is null || IsValidRect(_restrictedSelectRect) is false)
530530
{
531531
return false;
532532
}

0 commit comments

Comments
 (0)