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.
1 parent 6eee40a commit eaea805Copy full SHA for eaea805
Microsoft.Toolkit.Uwp.UI.Controls.Media/ImageCropper/ImageCropper.Logic.cs
@@ -527,7 +527,7 @@ private void UpdateMaskArea(bool animate = false)
527
/// </summary>
528
private bool TryUpdateAspectRatio()
529
{
530
- if (!(KeepAspectRatio && Source != null && IsValidRect(_restrictedSelectRect)))
+ if (KeepAspectRatio is false || Source is null || IsValidRect(_restrictedSelectRect) is false)
531
532
return false;
533
}
0 commit comments