Author: pbartok
Date: 2006-08-28 22:12:43 -0400 (Mon, 28 Aug 2006)
New Revision: 64504

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
Log:
2006-08-28  Peter Dennis Bartok  <[EMAIL PROTECTED]> 

        * TextControl.cs (FindCursor): Fix math error (Fixes #78402)



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-28 22:38:31 UTC (rev 64503)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-29 02:12:43 UTC (rev 64504)
@@ -1,3 +1,7 @@
+2006-08-28  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
+
+       * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
+
 2006-08-28  Peter Dennis Bartok  <[EMAIL PROTECTED]>
 
        * XplatUIX11.cs: Preempt the roundtrip for getting the location back

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2006-08-28 22:38:31 UTC (rev 64503)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2006-08-29 02:12:43 UTC (rev 64504)
@@ -3590,7 +3590,7 @@
                        tag = line.tags;
 
                        // Adjust for alignment
-                       x += line.align_shift;
+                       x -= line.align_shift;
 
                        while (true) {
                                if (x >= tag.X && x < (tag.X+tag.width)) {

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

Reply via email to