Browse Source
Merge branch 'master' into fix-opening-disabled-menu-with-accelerator-key
pull/6632/head
Max Katz
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Visuals/Media/FormattedText.cs
|
|
@ -200,7 +200,7 @@ namespace Avalonia.Media |
|
|
|
|
|
|
|
|
private void Set<T>(ref T field, T value) |
|
|
private void Set<T>(ref T field, T value) |
|
|
{ |
|
|
{ |
|
|
if (field != null && field.Equals(value)) |
|
|
if (EqualityComparer<T>.Default.Equals(field, value)) |
|
|
{ |
|
|
{ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|