Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorazerr2018-03-30 17:03:06 -0400
committerazerr2018-03-30 17:03:06 -0400
commitf8e67cd6a6fd622d5f002565139b3e2f6181edb5 (patch)
tree4bdbe16b91403229b87f099c321389a45a7ebcf8 /org.eclipse.jface.text/src
parentd6a4c8cfc2c8a4e690383ed530c5b706e3162441 (diff)
downloadeclipse.platform.text-f8e67cd6a6fd622d5f002565139b3e2f6181edb5.tar.gz
eclipse.platform.text-f8e67cd6a6fd622d5f002565139b3e2f6181edb5.tar.xz
eclipse.platform.text-f8e67cd6a6fd622d5f002565139b3e2f6181edb5.zip
Bug 532924 - [CodeMining] wrong redraw artifacts showing upI20180402-2000I20180401-2000
Change-Id: Ic2589ab19a8057ea9ee5aa483ca18bf859741158 Signed-off-by: azerr <angelo.zerr@gmail.com>
Diffstat (limited to 'org.eclipse.jface.text/src')
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationDrawingStrategy.java4
1 files changed, 2 insertions, 2 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 3e5f1d327..cbf170cd8 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
@@ -79,7 +79,7 @@ class InlinedAnnotationDrawingStrategy implements IDrawingStrategy {
} catch (Exception e) {
return;
}
- if (annotation.isMarkedDeleted()) {
+ if (annotation.isMarkedDeleted() || annotation.getPosition().isDeleted()) {
// When annotation is deleted, update metrics to null to remove extra spaces of the line header annotation.
if (style != null) {
style.metrics= null;
@@ -223,7 +223,7 @@ class InlinedAnnotationDrawingStrategy implements IDrawingStrategy {
} catch (Exception e) {
return;
}
- if (annotation.isMarkedDeleted()) {
+ if (annotation.isMarkedDeleted() || annotation.getPosition().isDeleted()) {
// When annotation is deleted, update metrics to null to remove extra spaces of the line content annotation.
if (style != null) {
style.metrics= null;

Back to the top