mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
Ensures working even if a value less than -1 is used.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user