Author: ivanz
Date: 2008-02-04 12:06:28 -0500 (Mon, 04 Feb 2008)
New Revision: 94762
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageIndexConverter.cs
Log:
2008-02-04 Ivan N. Zlatev <[EMAIL PROTECTED]>
* ImageIndexConverter.cs: ConvertFrom must handle "(none)".
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-04 17:00:59 UTC (rev 94761)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-04 17:06:28 UTC (rev 94762)
@@ -1,3 +1,7 @@
+2008-02-04 Ivan N. Zlatev <[EMAIL PROTECTED]>
+
+ * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
+
2008-02-03 Jonathan Pobst <[EMAIL PROTECTED]>
* DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageIndexConverter.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageIndexConverter.cs
2008-02-04 17:00:59 UTC (rev 94761)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageIndexConverter.cs
2008-02-04 17:06:28 UTC (rev 94762)
@@ -58,7 +58,10 @@
string indexStr;
if (value != null && value is string) {
indexStr = (string) value;
- return Int32.Parse (indexStr);
+ if (indexStr == "(none)")
+ return -1;
+ else
+ return Int32.Parse (indexStr);
}
else
return base.ConvertFrom (context, culture,
value);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches