diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-11-14 23:09:26 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-11-14 23:09:26 +0400 |
commit | 4ecbba74f2c2d9bb57253d154b154c1a8f91031e (patch) | |
tree | 4d304f3dafdd385600056e7f946874229e9ce89f /main/src/addins/MonoDevelop.SourceEditor2 | |
parent | 20ca409e02268f8c4673d15c617894228d5dc1cb (diff) |
[SourceEditor] Fixed location 2 point usage.
Diffstat (limited to 'main/src/addins/MonoDevelop.SourceEditor2')
-rw-r--r-- | main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/QuickTaskStrip.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/QuickTaskStrip.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/QuickTaskStrip.cs index 5a905d8e76..9ffbb10b3c 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/QuickTaskStrip.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/QuickTaskStrip.cs @@ -441,9 +441,9 @@ namespace MonoDevelop.SourceEditor double LineToY (int logicalLine) { var h = Allocation.Height - IndicatorHeight; - var p = TextEditor.LocationToPoint (logicalLine, 1).Y; + var p = TextEditor.LocationToPoint (logicalLine, 1, true).Y; var q = Math.Max (TextEditor.GetTextEditorData ().TotalHeight, TextEditor.Allocation.Height - IndicatorHeight); - + return h * p / q; } |