[Monodevelop-patches-list] r585 - trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 19 22:03:08 EST 2004


Author: tberman
Date: 2004-01-19 22:03:07 -0500 (Mon, 19 Jan 2004)
New Revision: 585

Modified:
   trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaControl.cs
   trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextView.cs
Log:
great patch from Valters Svabe <valters at inbox.lv> #53201


Modified: trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaControl.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaControl.cs	2004-01-20 02:32:18 UTC (rev 584)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaControl.cs	2004-01-20 03:03:07 UTC (rev 585)
@@ -160,13 +160,11 @@
 		void VScrollBarValueChanged(object sender, EventArgs e)
 		{
 			textArea.VirtualTop = new System.Drawing.Point((int)textArea.VirtualTop.X, (int)vScrollBar.Value);
-			textArea.Invalidate();
 		}
 		
 		void HScrollBarValueChanged(object sender, EventArgs e)
 		{
 			textArea.VirtualTop = new System.Drawing.Point((int)hScrollBar.Value, textArea.VirtualTop.Y);
-			textArea.Invalidate();
 		}
 		
 #if GTK

Modified: trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextView.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextView.cs	2004-01-20 02:32:18 UTC (rev 584)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextView.cs	2004-01-20 03:03:07 UTC (rev 585)
@@ -322,7 +322,7 @@
 				return 0f;
 			}
 			float wordWidth = MeasureString(font, word);
-			g.DrawRectangle(gc, true, new Gdk.Rectangle((int) Math.Abs(position.X), (int) Math.Abs(position.Y), (int) Math.Abs(wordWidth), (int) Math.Abs(FontHeight)));
+			g.DrawRectangle(gc, true, new Gdk.Rectangle((int) Math.Abs(position.X), (int) position.Y, (int) Math.Abs(wordWidth), (int) Math.Abs(FontHeight)));
 			using (Gdk.GC tgc = new Gdk.GC(g)) {
 				tgc.Copy(gc);
 				tgc.RgbFgColor = new Gdk.Color(foreColor);




More information about the Monodevelop-patches-list mailing list