Ensures working even if a value less than -1 is used.

This commit is contained in:
BDisp
2023-02-14 18:43:58 +00:00
parent 721a8873b0
commit 43efe8a563

View File

@@ -309,7 +309,7 @@ namespace Terminal.Gui {
/// Returns <see langword="true"/> if the Attribute is valid (both foreground and background have valid color values).
/// </summary>
/// <returns></returns>
public bool HasValidColors { get => (int)Foreground > -1 && (int)Background != -1; }
public bool HasValidColors { get => (int)Foreground > -1 && (int)Background > -1; }
}
/// <summary>