diff options
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java')
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java | 3 |
1 files changed, 1 insertions, 2 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 e95f0d52f96..07e1c567211 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 @@ -242,10 +242,9 @@ class InlinedAnnotationDrawingStrategy implements IDrawingStrategy { String s= textWidget.getText(offset, offset); Point charBounds= gc.stringExtent(s); int charWidth= charBounds.x; - int charHeight= charBounds.y; // When line text has line header annotation, there is a space on the top, adjust the y by using char height - y+= bounds.height - charHeight; + y+= bounds.height - textWidget.getLineHeight(); // Draw the line content annotation annotation.setLocation(x, y); |