~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/HiddenTextEditorViewContent.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                        Name = "";
48
48
                }
49
49
                
50
 
                public override void Load(string fileName)
 
50
                public override void Load (string fileName)
51
51
                {
52
52
                }
53
53
                
104
104
                
105
105
                public int GetPositionFromLineColumn (int line, int column)
106
106
                {
107
 
                        return document.LocationToOffset (line - 1, column - 1);
 
107
                        return document.LocationToOffset (line, column);
108
108
                }
109
109
                
110
110
                public void GetLineColumnFromPosition (int position, out int line, out int column)
111
111
                {
112
112
                        Mono.TextEditor.DocumentLocation loc = document.OffsetToLocation (position);
113
 
                        line = loc.Line + 1;
114
 
                        column = loc.Column + 1;
 
113
                        line = loc.Line;
 
114
                        column = loc.Column;
115
115
                }
116
116
                
117
117
                public string SelectedText { get { return ""; } set { } }