Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelozerr2018-08-31 08:54:38 +0000
committerMickael Istria2018-09-21 08:01:57 +0000
commit6bc4a74a0addb0b95bd497e2e9eee3444519e052 (patch)
treec9ec1a38b9dcdd5e4e3eeabc5252a604eed81a8b
parent5b95a692ab1d6a909b865aad0f62fc0389fcc929 (diff)
downloadeclipse.platform.text-6bc4a74a0addb0b95bd497e2e9eee3444519e052.tar.gz
eclipse.platform.text-6bc4a74a0addb0b95bd497e2e9eee3444519e052.tar.xz
eclipse.platform.text-6bc4a74a0addb0b95bd497e2e9eee3444519e052.zip
Bug 538444 - [code mining] Draw of inlined header annotation breaks the
draw of the dark scrollbar/margin A side effect is the the whole line (included code mining) is highlighted when selected instead of the text part only. But discussion on the bug concludes it's better as proposed than in previous state. Change-Id: I9473fa366a286d5babcea505807a51f7f50782c9 Signed-off-by: angelozerr <angelo.zerr@gmail.com>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java3
1 files changed, 0 insertions, 3 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 69669f2d1..5d3b41c53 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,10 +96,7 @@ class InlinedAnnotationDrawingStrategy implements IDrawingStrategy {
int x= bounds.x;
int y= bounds.y;
- // Colorize line spacing area with the background of StyledText to avoid having highlighted line color
gc.setBackground(textWidget.getBackground());
- Rectangle client= textWidget.getClientArea();
- gc.fillRectangle(0, y, client.width, annotation.getHeight());
// Draw the line header annotation
annotation.setLocation(x, y);

Back to the top