Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorazerr2018-05-03 05:15:16 -0400
committerMickael Istria2018-05-03 06:18:34 -0400
commit8200abf1ca09e6ff53f99517e3141ebdb26e5557 (patch)
treefc0dfd6a24d54bb6c0883a311ba6d9603acb2a1f /org.eclipse.jface.text/src
parent26c62b6438715ea0863d1facee844e6703f01c55 (diff)
downloadeclipse.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>
Diffstat (limited to 'org.eclipse.jface.text/src')
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java2
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 4628c24b0..d99d14df6 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;
}
}

Back to the top