From: Jonathan Pobst Date: Thu, 16 Dec 2010 20:43:32 +0000 (-0600) Subject: Move line inside if () to fix 2 tests. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=bfb617e8636436f4243815d25772a0f42eda8e8c;p=mono.git Move line inside if () to fix 2 tests. Broke by 9aa23d8ebec0f5c60ae66fee3df8a3c6c39cf191. --- 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; }