Author: jpobst
Date: 2007-10-15 17:46:36 -0400 (Mon, 15 Oct 2007)
New Revision: 87537
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
Log:
2007-10-15 Jonathan Pobst <[EMAIL PROTECTED]>
* TextControl.cs: When SuspendRecalc is first called, reset the
recalc_start
to MaxValue and recalc_end to MinValue. Currently, recalc_start is
always 1,
so we always recalculate the whole document instead of just the new
part.
[Fixes bug #325082]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-10-15 21:31:06 UTC (rev 87536)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-10-15 21:46:36 UTC (rev 87537)
@@ -1,5 +1,12 @@
2007-10-15 Jonathan Pobst <[EMAIL PROTECTED]>
+ * TextControl.cs: When SuspendRecalc is first called, reset the
recalc_start
+ to MaxValue and recalc_end to MinValue. Currently, recalc_start is
always 1,
+ so we always recalculate the whole document instead of just the new
part.
+ [Fixes bug #325082]
+
+2007-10-15 Jonathan Pobst <[EMAIL PROTECTED]>
+
* LineTag.cs: Fix a case where the GetCharIndex would not return 0
when the mouse was to the left of the first character in the line.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2007-10-15 21:31:06 UTC (rev 87536)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2007-10-15 21:46:36 UTC (rev 87537)
@@ -492,6 +492,11 @@
internal void SuspendRecalc ()
{
+ if (recalc_suspended == 0) {
+ recalc_start = int.MaxValue;
+ recalc_end = int.MinValue;
+ }
+
recalc_suspended++;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches