From 8b5356e49064b77364ef8cc0c9af87a59f1e9a0a Mon Sep 17 00:00:00 2001 From: janengelhardt Date: Tue, 28 Jun 2011 14:00:54 +0200 Subject: [PATCH] clean code Change-Id: I43a5703ed1dee98dbad0b15226dbe21a87fb6ead --- src/jalview/gui/AnnotationLabels.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index b8c81ce..6626016 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -58,7 +58,7 @@ public class AnnotationLabels extends JPanel implements MouseListener, Image image; AlignmentPanel ap; - + AlignViewport av; boolean resizing = false; @@ -439,7 +439,6 @@ public class AnnotationLabels extends JPanel implements MouseListener, public void mouseClicked(MouseEvent evt) { AlignmentAnnotation[] aa = ap.av.alignment.getAlignmentAnnotation(); - if (SwingUtilities.isLeftMouseButton(evt)) { if (selectedRow > -1 && selectedRow < aa.length) @@ -495,7 +494,6 @@ public class AnnotationLabels extends JPanel implements MouseListener, JMenuItem item = new JMenuItem(ADDNEW); item.addActionListener(this); pop.add(item); - if (selectedRow < 0) { if (hasHiddenRows) -- 1.7.10.2