Skip to content

Commit eaea805

Browse files
ArlodotexeHHChaos
andauthored
Update Microsoft.Toolkit.Uwp.UI.Controls.Media/ImageCropper/ImageCropper.Logic.cs
Co-authored-by: hhchaos <HHChaos@outlook.com>
1 parent 6eee40a commit eaea805

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
@@ -527,7 +527,7 @@ private void UpdateMaskArea(bool animate = false)
527527
/// </summary>
528528
private bool TryUpdateAspectRatio()
529529
{
530-
if (!(KeepAspectRatio && Source != null && IsValidRect(_restrictedSelectRect)))
530+
if (KeepAspectRatio is false || Source is null || IsValidRect(_restrictedSelectRect) is false)
531531
{
532532
return false;
533533
}

0 commit comments

Comments
 (0)