Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelozerr2018-11-19 12:07:12 -0500
committerangelozerr2018-11-19 12:08:19 -0500
commit66e22caacafdfe48f7561114f1ae7c347fc0079c (patch)
tree0c20e1f843e63f87c5bed225d8e7139a249791fd
parent0cbe3ef0a78e36bccb3a9f2fd90594e87f4896b5 (diff)
downloadeclipse.platform.text-66e22caacafdfe48f7561114f1ae7c347fc0079c.tar.gz
eclipse.platform.text-66e22caacafdfe48f7561114f1ae7c347fc0079c.tar.xz
eclipse.platform.text-66e22caacafdfe48f7561114f1ae7c347fc0079c.zip
line Signed-off-by: angelozerr <angelo.zerr@gmail.com>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java8
1 files changed, 7 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 97975cc29..a4907e9eb 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
@@ -163,7 +163,13 @@ class InlinedAnnotationDrawingStrategy implements IDrawingStrategy {
annotation.draw(gc, textWidget, offset, length, color, x, y);
int width= annotation.getWidth();
if (width != 0) {
- if (!isEndOfLine) {
+ if (isEndOfLine) {
+ if (!gc.getClipping().contains(x, y)) {
+ // The draw of mining is not inside the gc clipping, redraw the area which contains the mining to draw.
+ Rectangle client= textWidget.getClientArea();
+ textWidget.redraw(x, y, client.width, bounds.height, false);
+ }
+ } else {
// Get size of the character where GlyphMetrics width is added
Point charBounds= gc.stringExtent(s);
int charWidth= charBounds.x;

Back to the top