Author: jordi
Date: 2005-09-28 04:46:05 -0400 (Wed, 28 Sep 2005)
New Revision: 50934
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
Log:
2005-09-28 Kazuki Oikawa <[EMAIL PROTECTED]>
* ListBox.cs: Fixes IndexFromPoint for last item
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-09-28 08:17:09 UTC (rev 50933)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-09-28 08:46:05 UTC (rev 50934)
@@ -1,3 +1,7 @@
+2005-09-28 Kazuki Oikawa <[EMAIL PROTECTED]>
+
+ * ListBox.cs: Fixes IndexFromPoint for last item
+
2005-09-27 Jackson Harper <[EMAIL PROTECTED]>
* Form.cs: Set the position of new mdi children correctly.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
2005-09-28 08:17:09 UTC (rev 50933)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
2005-09-28 08:46:05 UTC (rev 50934)
@@ -792,7 +792,7 @@
// Only returns visible points
public int IndexFromPoint (int x, int y)
{
- for (int i = LBoxInfo.top_item; i < LBoxInfo.last_item;
i++) {
+ for (int i = LBoxInfo.top_item; i <=
LBoxInfo.last_item; i++) {
if (GetItemRectangle (i).Contains (x,y) == true)
return i;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches