We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c70926 + eaea805 commit 311d05cCopy full SHA for 311d05c
Microsoft.Toolkit.Uwp.UI.Controls.Media/ImageCropper/ImageCropper.Logic.cs
@@ -526,7 +526,7 @@ private void UpdateMaskArea(bool animate = false)
526
/// </summary>
527
private bool TryUpdateAspectRatio()
528
{
529
- if (!(KeepAspectRatio && Source != null && IsValidRect(_restrictedSelectRect)))
+ if (KeepAspectRatio is false || Source is null || IsValidRect(_restrictedSelectRect) is false)
530
531
return false;
532
}
0 commit comments