Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorazerr2018-04-04 07:42:13 +0000
committerazerr2018-04-04 07:42:13 +0000
commit1259eb4e4e8e7936d3dbdbd2b15f1a3eb38d50c1 (patch)
tree5d36cc9c4c0e5f8a4ec40947ec2b46e1bc8044c0 /org.eclipse.jface.text/src/org/eclipse/jface/text
parent0b66d53a6f7a1ca03c79ede469e7c0d54367d1b7 (diff)
downloadeclipse.platform.text-1259eb4e4e8e7936d3dbdbd2b15f1a3eb38d50c1.tar.gz
eclipse.platform.text-1259eb4e4e8e7936d3dbdbd2b15f1a3eb38d50c1.tar.xz
eclipse.platform.text-1259eb4e4e8e7936d3dbdbd2b15f1a3eb38d50c1.zip
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>
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text')
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java2
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 cbf170cd837..63db861bc3b 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 @@ class InlinedAnnotationDrawingStrategy implements IDrawingStrategy {
// 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);

Back to the top