diff options
author | angelozerr | 2018-08-31 08:54:38 +0000 |
---|---|---|
committer | Mickael Istria | 2018-09-21 08:01:57 +0000 |
commit | 6bc4a74a0addb0b95bd497e2e9eee3444519e052 (patch) | |
tree | c9ec1a38b9dcdd5e4e3eeabc5252a604eed81a8b | |
parent | 5b95a692ab1d6a909b865aad0f62fc0389fcc929 (diff) | |
download | eclipse.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.java | 3 |
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 69669f2d1b0..5d3b41c5332 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); |