Browse Source

Fix

pull/6344/head
Wiesław Šoltés 4 years ago
parent
commit
a5992d363a
  1. 2
      src/Avalonia.Visuals/Media/Immutable/ImmutableSolidColorBrush.cs

2
src/Avalonia.Visuals/Media/Immutable/ImmutableSolidColorBrush.cs

@ -57,7 +57,7 @@ namespace Avalonia.Media.Immutable
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return Color.Equals(other.Color) && Opacity.Equals(other.Opacity) && (Transform == null && other.Transform == null ? true : Transform.Equals(other.Transform));
return Color.Equals(other.Color) && Opacity.Equals(other.Opacity) && (Transform == null && other.Transform == null ? true : (Transform != null && Transform.Equals(other.Transform)));
}
public override bool Equals(object? obj)

Loading…
Cancel
Save