Author: jordi
Date: 2006-01-17 18:10:15 -0500 (Tue, 17 Jan 2006)
New Revision: 55702

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
Log:
Clicking on non empty areas in the columns area was giving an exception

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-01-17 23:08:04 UTC (rev 55701)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-01-17 23:10:15 UTC (rev 55702)
@@ -1,3 +1,8 @@
+2006-01-18  Jordi Mas i Hernandez <[EMAIL PROTECTED]>
+
+       * DataGrid.cs: Clicking on non empty areas in the columns
+          area was giving an exception
+
 2006-01-17  Jackson Harper  <[EMAIL PROTECTED]>
 
        * ThemeWin32Classic.cs:

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs      
2006-01-17 23:08:04 UTC (rev 55701)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs      
2006-01-17 23:10:15 UTC (rev 55702)
@@ -1315,6 +1315,9 @@
                        switch (testinfo.type) {
                        case HitTestType.Cell:
                        {
+                               if (testinfo.Row < 0 || testinfo.Column < 0)
+                                       break;
+                                       
                                DataGridCell new_cell = new DataGridCell 
(testinfo.Row, testinfo.Column);
 
                                if (new_cell.Equals (current_cell) == false) {

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

Reply via email to