git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
command line hook for questionnaire url argument.
[jalview.git]
/
src
/
jalview
/
gui
/
AnnotationLabels.java
diff --git
a/src/jalview/gui/AnnotationLabels.java
b/src/jalview/gui/AnnotationLabels.java
index
e4c074b
..
783c905
100755
(executable)
--- a/
src/jalview/gui/AnnotationLabels.java
+++ b/
src/jalview/gui/AnnotationLabels.java
@@
-358,12
+358,13
@@
public class AnnotationLabels extends JPanel implements MouseListener,
getSelectedRow(evt.getY() - scrollOffset);
getSelectedRow(evt.getY() - scrollOffset);
- if(selectedRow>-1)
+ if(selectedRow>-1
+ && ap.av.alignment.getAlignmentAnnotation().length>selectedRow)
{
String desc = ap.av.alignment.
getAlignmentAnnotation()[selectedRow].description;
{
String desc = ap.av.alignment.
getAlignmentAnnotation()[selectedRow].description;
- if (desc != null && !desc.equals("New Description"))
+ if (desc != null && !desc.equals("New description"))
setToolTipText(ap.av.alignment.
getAlignmentAnnotation()[selectedRow].description);
setToolTipText(ap.av.alignment.
getAlignmentAnnotation()[selectedRow].description);