From 830518dd02bbe8858347dbdcf5604e47af03faf3 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 18 Jan 2013 08:01:53 +0000 Subject: [PATCH] JAL-1255 don't show 'Right click to add annotations' message in wrapped mode --- src/jalview/appletgui/AnnotationLabels.java | 2 +- src/jalview/gui/AnnotationLabels.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index c85de33..3d54ae1 100755 --- a/src/jalview/appletgui/AnnotationLabels.java +++ b/src/jalview/appletgui/AnnotationLabels.java @@ -762,7 +762,7 @@ public class AnnotationLabels extends Panel implements ActionListener, dragEvent.getY()); } - if ((aa == null) || (aa.length < 1)) + if (!av.wrapAlignment && ((aa == null) || (aa.length < 1))) { g.setColor(Color.black); g.drawString("Right click", 2, 8); diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 1577477..dd6f190 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -960,7 +960,7 @@ public class AnnotationLabels extends JPanel implements MouseListener, dragEvent.getY() - scrollOffset); } - if ((aa == null) || (aa.length < 1)) + if (!av.wrapAlignment && ((aa == null) || (aa.length < 1))) { g.drawString("Right click", 2, 8); g.drawString("to add annotation", 2, 18); -- 1.7.10.2