From 43efe8a563a50a4715140c302cde68c9f8a0147c Mon Sep 17 00:00:00 2001 From: BDisp Date: Tue, 14 Feb 2023 18:43:58 +0000 Subject: [PATCH] Ensures working even if a value less than -1 is used. --- Terminal.Gui/Core/ConsoleDriver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Core/ConsoleDriver.cs b/Terminal.Gui/Core/ConsoleDriver.cs index 74cd4f5fa..5f88b5d86 100644 --- a/Terminal.Gui/Core/ConsoleDriver.cs +++ b/Terminal.Gui/Core/ConsoleDriver.cs @@ -309,7 +309,7 @@ namespace Terminal.Gui { /// Returns if the Attribute is valid (both foreground and background have valid color values). /// /// - public bool HasValidColors { get => (int)Foreground > -1 && (int)Background != -1; } + public bool HasValidColors { get => (int)Foreground > -1 && (int)Background > -1; } } ///