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

« back to all changes in this revision

Viewing changes to src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/HtmlEditorExtension.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:
92
92
                                region.End = el.ClosingTag.Region.End;
93
93
                        }
94
94
                        
95
 
                        int s = Editor.GetPositionFromLineColumn (region.Start.Line, region.Start.Column);
96
 
                        int e = Editor.GetPositionFromLineColumn (region.End.Line, region.End.Column);
 
95
                        int s = Editor.Document.LocationToOffset (region.Start.Line, region.Start.Column );
 
96
                        int e = Editor.Document.LocationToOffset (region.End.Line, region.End.Column);
97
97
                        if (e > s && s > -1)
98
 
                                Editor.Select (s, e);
 
98
                                Editor.SetSelection (s, e);
99
99
                }
100
100
                
101
101
                #endregion