Kaynağa Gözat

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

BDisp 2 yıl önce
ebeveyn
işleme
43efe8a563
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Terminal.Gui/Core/ConsoleDriver.cs

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