Author: mkestner
Date: 2006-11-03 15:22:19 -0500 (Fri, 03 Nov 2006)
New Revision: 67325
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
Log:
2006-11-03 Mike Kestner <[EMAIL PROTECTED]>
* ComboBox.cs : use ToString instead of casts in AddItem for
sorting functionality. Fixes #79812.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-03 20:09:34 UTC (rev 67324)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-03 20:22:19 UTC (rev 67325)
@@ -1,3 +1,8 @@
+2006-11-03 Mike Kestner <[EMAIL PROTECTED]>
+
+ * ComboBox.cs : use ToString instead of casts in AddItem for
+ sorting functionality. Fixes #79812.
+
2006-11-03 Chris Toshok <[EMAIL PROTECTED]>
* Application.cs: pave the way for actually using the thread
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
2006-11-03 20:09:34 UTC (rev 67324)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
2006-11-03 20:22:19 UTC (rev 67325)
@@ -1424,8 +1424,8 @@
if (owner.Sorted) {
int index = 0;
- foreach (string s in object_items) {
- if (String.Compare (item as
String, s) < 0) {
+ foreach (object o in object_items) {
+ if (String.Compare
(item.ToString (), o.ToString ()) < 0) {
object_items.Insert
(index, item);
return index;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches