From 752574a5424f69202d69d8a78dcb2856d13330ed Mon Sep 17 00:00:00 2001 From: BDisp Date: Fri, 10 Mar 2023 19:30:04 +0000 Subject: [PATCH] Prevents null value. --- Terminal.Gui/Windows/MessageBox.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/Windows/MessageBox.cs b/Terminal.Gui/Windows/MessageBox.cs index 5014336c2..2bdf8efc1 100644 --- a/Terminal.Gui/Windows/MessageBox.cs +++ b/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;