From: jprocter Date: Fri, 18 Jan 2013 08:01:53 +0000 (+0000) Subject: JAL-1255 don't show 'Right click to add annotations' message in wrapped mode X-Git-Tag: Jalview_2_9~254^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=830518dd02bbe8858347dbdcf5604e47af03faf3;p=jalview.git JAL-1255 don't show 'Right click to add annotations' message in wrapped mode --- 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);