2
0
Эх сурвалжийг харах

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

BDisp 2 жил өмнө
parent
commit
43efe8a563

+ 1 - 1
Terminal.Gui/Core/ConsoleDriver.cs

@@ -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>