From 0af574276d914ed4ba6af684c2c6a6c7cb70562c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 22 Feb 2018 14:07:58 +0000 Subject: [PATCH] JAL-984 remove commented/unnecessary if clause --- src/jalview/appletgui/AnnotationLabels.java | 10 ++-------- src/jalview/gui/AnnotationLabels.java | 6 +----- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index c049326..cbd2434 100755 --- a/src/jalview/appletgui/AnnotationLabels.java +++ b/src/jalview/appletgui/AnnotationLabels.java @@ -909,14 +909,8 @@ public class AnnotationLabels extends Panel } } g.translate(0, +scrollOffset); - if (resizePanel) - { - // g.setColor(Color.red); - // g.setPaintMode(); - // g.drawLine(2, 8, 5, 2); - // g.drawLine(5, 2, 8, 8); - } - else if (!dragCancelled && dragEvent != null && aa != null) + + if (!resizePanel && !dragCancelled && dragEvent != null && aa != null) { g.setColor(Color.lightGray); g.drawString(aa[selectedRow].label, dragEvent.getX(), diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 77b4ea9..d903979 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -1227,11 +1227,7 @@ public class AnnotationLabels extends JPanel } } - if (resizePanel) - { - // g.drawImage(adjusterImage, 2, 0 - getScrollOffset(), this); - } - else if (dragEvent != null && aa != null) + if (!resizePanel && dragEvent != null && aa != null) { g.setColor(Color.lightGray); g.drawString(aa[selectedRow].label, dragEvent.getX(), -- 1.7.10.2