From 2b5e971eaf9e21cfd78f3131bd1308043a02776d Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Sun, 3 Jan 2010 13:57:18 +0000 Subject: [PATCH] Character offset now correct in status bar when editing xml files. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5367 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs index a46ffbab7b..5cddec5314 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs @@ -801,7 +801,7 @@ namespace ICSharpCode.XmlEditor TextAreaControl activeTextAreaControl = xmlEditor.ActiveTextAreaControl; int line = activeTextAreaControl.Caret.Line; int col = activeTextAreaControl.Caret.Column; - StatusBarService.SetCaretPosition(activeTextAreaControl.TextArea.TextView.GetVisualColumn(line, col) + 1, line + 1, col = 1); + StatusBarService.SetCaretPosition(activeTextAreaControl.TextArea.TextView.GetVisualColumn(line, col) + 1, line + 1, col + 1); } ///