Author: toshok
Date: 2007-03-23 15:42:58 -0500 (Fri, 23 Mar 2007)
New Revision: 74922

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
Log:
2007-03-23  Chris Toshok  <[EMAIL PROTECTED]>

        * DataGrid.cs (GetVisibleRowCount): increase the row count in the
        case where there's an add row, just so we don't end up in a case
        where it's not displayed (this happens when the row is partially
        obscured).  Fixes bug #79574.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-03-23 20:36:10 UTC (rev 74921)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-03-23 20:42:58 UTC (rev 74922)
@@ -1,3 +1,10 @@
+2007-03-23  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * DataGrid.cs (GetVisibleRowCount): increase the row count in the
+       case where there's an add row, just so we don't end up in a case
+       where it's not displayed (this happens when the row is partially
+       obscured).  Fixes bug #79574.
+
 2007-03-23  Jackson Harper  <[EMAIL PROTECTED]>
 
        * TextControl.cs:

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs      
2007-03-23 20:36:10 UTC (rev 74921)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs      
2007-03-23 20:42:58 UTC (rev 74922)
@@ -3083,7 +3083,7 @@
                                rows_height += rows[r].Height;
                        }
 
-                       if (r < rows.Length - 1)
+                       if (r <= rows.Length - 1)
                                r ++;
 
                        return r - FirstVisibleRow;

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

Reply via email to