From bfb617e8636436f4243815d25772a0f42eda8e8c Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Thu, 16 Dec 2010 14:43:32 -0600 Subject: [PATCH] Move line inside if () to fix 2 tests. Broke by 9aa23d8ebec0f5c60ae66fee3df8a3c6c39cf191. --- .../Managed.Windows.Forms/System.Windows.Forms/TextBox.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs index fc63bd43808..d7c548ca0a2 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs @@ -356,8 +356,10 @@ namespace System.Windows.Forms { if (backColor == Color.Empty) { if (!ReadOnly) backColor = SystemColors.Window; + + backcolor_set = false; } - backcolor_set = false; + return backColor; } -- 2.25.1