Просмотр исходного кода

* TextControl.cs: We can't skip tags if any part of the tag is
visible.


svn path=/trunk/mcs/; revision=71306

Jackson Harper 19 лет назад
Родитель
Сommit
4fd6a930c2

+ 5 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,8 @@
+2007-01-18  Jackson Harper  <[email protected]>
+
+	* TextControl.cs: We can't skip tags if any part of the tag is
+	visible.
+
 2007-01-18  Jonathan Pobst  <[email protected]>
 
 	* ContainerControl.cs: Override OnLayout.

+ 1 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs

@@ -1916,7 +1916,7 @@ namespace System.Windows.Forms {
 						continue;
 					}
 
-					if (((tag.X + tag.width) < (clip.Left - viewport_x)) || (tag.X > (clip.Right - viewport_x))) {
+					if (((tag.X + tag.width) < (clip.Left - viewport_x)) && (tag.X > (clip.Right - viewport_x))) {
 						tag = tag.next;
 						continue;
 					}