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
This commit is contained in:
Коммит
311d05c70a
|
@ -526,7 +526,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Controls
|
|||
/// </summary>
|
||||
private bool TryUpdateAspectRatio()
|
||||
{
|
||||
if (!(KeepAspectRatio && Source != null && IsValidRect(_restrictedSelectRect)))
|
||||
if (KeepAspectRatio is false || Source is null || IsValidRect(_restrictedSelectRect) is false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче