Author: spouliot
Date: 2006-08-27 22:26:39 -0400 (Sun, 27 Aug 2006)
New Revision: 64458

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs
Log:
ColorTranslator.cs: Use ColorEmpty instead of creating a new Color instance.

Modified: trunk/mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs    
2006-08-28 02:25:36 UTC (rev 64457)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs    
2006-08-28 02:26:39 UTC (rev 64458)
@@ -42,7 +42,7 @@
                public static Color FromHtml (string htmlColor)
                {
                        if ((htmlColor == null) || (htmlColor.Length == 0))
-                               return Color.FromArgb (0, 0, 0, 0);
+                               return Color.Empty;
 
                        switch (htmlColor.ToLower ()) {
                        case "buttonface":

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to