From e49d2b4493f4f249b8b95ada4f804cfa1c08413d Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Tue, 10 Jul 2007 17:27:07 +0000 Subject: [PATCH] TextEditor: Fixed UpdateToEnd when there are folded regions. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2601 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs index 9f1a33a9e8..195eb67703 100644 --- a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs +++ b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs @@ -898,7 +898,7 @@ namespace ICSharpCode.TextEditor // return; // } - //lineBegin = Math.Min(lineBegin, FirstPhysicalLine); + lineBegin = Document.GetVisibleLine(lineBegin); int y = Math.Max( 0, (int)(lineBegin * textView.FontHeight)); y = Math.Max(0, y - this.virtualTop.Y); Rectangle r = new Rectangle(0,