[Mono-bugs] [Bug 79588][Blo] Changed - ComboBox: ArgumentOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 6 10:29:57 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by alex.olk at googlemail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79588

--- shadow/79588	2006-10-05 23:32:03.000000000 -0400
+++ shadow/79588.tmp.2883	2006-10-06 10:29:57.000000000 -0400
@@ -170,6 +170,30 @@
   at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
 mainForm) [0x00000] in
 /home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:421
 
   at testwin.MainForm.Main (System.String[] args) [0x00000] in
 /home/alex/develop/winforms/filedialog/swf-filedialog.cs:31
+
+------- Additional Comments From alex.olk at googlemail.com  2006-10-06 10:29 -------
+And a small patch that fixes this blocker:
+
+Index: ComboBox.cs
+===================================================================
+--- ComboBox.cs	(Revision 66347)
++++ ComboBox.cs	(Arbeitskopie)
+@@ -1711,10 +1711,10 @@
+ 					if (highlighted_index == value)
+ 						return;
+ 
+-    					if (highlighted_index != -1)
++    					if (highlighted_index != -1 && highlighted_index <
+owner.Items.Count)
+ 						Invalidate (GetItemDisplayRectangle (highlighted_index, top_item));
+ 					highlighted_index = value;
+-    					if (highlighted_index != -1)
++    					if (highlighted_index != -1 && highlighted_index <
+owner.Items.Count)
+ 						Invalidate (GetItemDisplayRectangle (highlighted_index, top_item));
+ 				}
+ 			}
+


More information about the mono-bugs mailing list