Author: calberto
Date: 2006-07-19 01:19:14 -0400 (Wed, 19 Jul 2006)
New Revision: 62727

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListControl.cs
Log:
2006-07-18  Carlos Alberto Cortez <[EMAIL PROTECTED]>

        * ListControl.cs: DisplayMember should never be null,
        and now we assign String.Empty when null is passed to it (this
        is the .Net way).



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-19 04:11:53 UTC (rev 62726)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-19 05:19:14 UTC (rev 62727)
@@ -1,3 +1,9 @@
+2006-07-18  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+       * ListControl.cs: DisplayMember should never be null,
+       and now we assign String.Empty when null is passed to it (this
+       is the .Net way).
+
 2006-07-17  Mike Kestner  <[EMAIL PROTECTED]>
 
        * ListViewItem.cs: restructure Font and subitem Font handling 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListControl.cs   
2006-07-19 04:11:53 UTC (rev 62726)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListControl.cs   
2006-07-19 05:19:14 UTC (rev 62727)
@@ -97,6 +97,9 @@
                                return display_member;                          
                        }
                        set {
+                               if (value == null)
+                                       value = String.Empty;
+
                                if (display_member == value) {
                                        return;
                                }

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

Reply via email to