Bug 533192 - [CodeMining] Fix little bug with background of mining line
header when line is selected
Change-Id: I9ddbc1b76f9f829a5bfd336b3fa168fed22efe09
Signed-off-by: azerr <angelo.zerr@gmail.com>
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 cbf170c..63db861 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
@@ -96,7 +96,7 @@
// Colorize line spacing area with the background of StyledText to avoid having highlighted line color
gc.setBackground(textWidget.getBackground());
Rectangle client= textWidget.getClientArea();
- textWidget.drawBackground(gc, x, y, client.width, annotation.getHeight());
+ textWidget.drawBackground(gc, 0, y, client.width, annotation.getHeight());
// Draw the line header annotation
annotation.draw(gc, textWidget, offset, length, color, x, y);