Parcourir la source

Prevents null value.

BDisp il y a 2 ans
Parent
commit
752574a542
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      Terminal.Gui/Windows/MessageBox.cs

+ 2 - 2
Terminal.Gui/Windows/MessageBox.cs

@@ -290,8 +290,8 @@ namespace Terminal.Gui {
 
 			if (useErrorColors) {
 				d.ColorScheme = Colors.Error;
-				border.BorderBrush = Colors.Error.Normal.Foreground;
-				border.Background = Colors.Error.Normal.Background;
+				d.Border.BorderBrush = Colors.Error.Normal.Foreground;
+				d.Border.Background = Colors.Error.Normal.Background;
 			} else {
 				d.ColorScheme = Colors.Dialog;
 				d.Border.BorderBrush = Colors.Dialog.Normal.Foreground;