diff options
author | azerr | 2018-05-03 09:15:16 +0000 |
---|---|---|
committer | Mickael Istria | 2018-05-03 10:18:34 +0000 |
commit | 8200abf1ca09e6ff53f99517e3141ebdb26e5557 (patch) | |
tree | fc0dfd6a24d54bb6c0883a311ba6d9603acb2a1f | |
parent | 26c62b6438715ea0863d1facee844e6703f01c55 (diff) | |
download | eclipse.platform.text-8200abf1ca09e6ff53f99517e3141ebdb26e5557.tar.gz eclipse.platform.text-8200abf1ca09e6ff53f99517e3141ebdb26e5557.tar.xz eclipse.platform.text-8200abf1ca09e6ff53f99517e3141ebdb26e5557.zip |
Bug 534297 - [code mining] click on inlined annotation must take care ofI20180503-0740
visibility of annotation
Change-Id: I62061c209220a11398be7d2220eea46fa6dc8b8c
Signed-off-by: azerr <angelo.zerr@gmail.com>
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java index 4628c24b0e6..d99d14df60d 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java @@ -536,7 +536,7 @@ public class InlinedAnnotationSupport { private AbstractInlinedAnnotation getInlinedAnnotationAtPoint(ISourceViewer viewer, int x, int y) { if (fInlinedAnnotations != null) { for (AbstractInlinedAnnotation ann : fInlinedAnnotations) { - if (ann.contains(x, y)) { + if (ann.contains(x, y) && isInVisibleLines(ann.getPosition().getOffset())) { return ann; } } |