Move line inside if () to fix 2 tests.
authorJonathan Pobst <monkey@jpobst.com>
Thu, 16 Dec 2010 20:43:32 +0000 (14:43 -0600)
committerJonathan Pobst <monkey@jpobst.com>
Thu, 16 Dec 2010 20:43:32 +0000 (14:43 -0600)
Broke by 9aa23d8ebec0f5c60ae66fee3df8a3c6c39cf191.

mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs

index fc63bd4380829d61cc5a371e411e0fa2893c5df2..d7c548ca0a2aa00a52e785e6e8ff86c1fcaeb61c 100644 (file)
@@ -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;
                }