diff options
author | azerr | 2018-05-03 14:12:09 +0000 |
---|---|---|
committer | azerr | 2018-05-03 14:12:09 +0000 |
commit | 0c57e7f34e4233e11b0cb3644bd7677236e28313 (patch) | |
tree | ebca44a03dbb480ac891ba061f4276a3b5630b20 | |
parent | e969129d9f4bb0e4c82f9e870887909572ccc5ab (diff) | |
download | eclipse.platform.text-0c57e7f34e4233e11b0cb3644bd7677236e28313.tar.gz eclipse.platform.text-0c57e7f34e4233e11b0cb3644bd7677236e28313.tar.xz eclipse.platform.text-0c57e7f34e4233e11b0cb3644bd7677236e28313.zip |
Bug 534318 - [code mining] Redraw of character has wrong y location for
line header annotation
Change-Id: Id076e383be92833b1add1ae02ea39d0b8bad9ef7
Signed-off-by: azerr <angelo.zerr@gmail.com>
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java index 2ffcc52cc79..edc8a793e37 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java @@ -127,7 +127,7 @@ class InlinedAnnotationDrawingStrategy implements IDrawingStrategy { // FIXME: remove this code when we need not redraw the character (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=531769) // START TO REMOVE int charX= x + bounds.width - charWidth; - int charY= y + bounds.height - height; + int charY= y + bounds.height - textWidget.getLineHeight(); if (style != null) { if (style.background != null) { gc.setBackground(style.background); |