diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2013-08-14 08:57:17 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2013-08-14 08:57:17 +0400 |
commit | 608656a04277bedf9de1444dbe50961e866bd4db (patch) | |
tree | 3d72d93f70ec5c28ddc6a4e0128dcf6a2b8857c5 /main/src/core/Mono.Texteditor | |
parent | 550ba752bf6e0c8cb06c19273195e50cbf2c4777 (diff) |
[TextEditor] Fixed coordinate calculation bug.
Diffstat (limited to 'main/src/core/Mono.Texteditor')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs index 01b49242c9..3783270082 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs @@ -2801,7 +2801,7 @@ namespace Mono.TextEditor if (BackgroundRenderer == null) { var metrics = new EndOfLineMetrics { LineSegment = line, - TextRenderEndPosition = TextStartPosition + position / Pango.Scale.PangoScale, + TextRenderEndPosition = TextStartPosition + position, LineHeight = _lineHeight }; foreach (var marker in line.Markers) { @@ -2809,7 +2809,7 @@ namespace Mono.TextEditor } } - lastLineRenderWidth = position / Pango.Scale.PangoScale; + lastLineRenderWidth = position; if (textEditor.HAdjustment.Value > 0) { cr.LineWidth = textEditor.Options.Zoom; for (int i = 0; i < verticalShadowAlphaTable.Length; i++) { |