From c9bdc7d7fb996544448e0e9026f906f30f521499 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 24 May 2013 13:27:49 +0100 Subject: [PATCH] JAL-1291 - don't touch the graphics object until after deciding to skip annotation row --- src/jalview/gui/AnnotationLabels.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 7d8a596..ec56388 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -882,8 +882,6 @@ public class AnnotationLabels extends JPanel implements MouseListener, for (int i = 0; i < aa.length; i++) { visible = true; - g.setColor(Color.black); - if (!aa[i].visible) { hasHiddenRows = true; @@ -916,6 +914,8 @@ public class AnnotationLabels extends JPanel implements MouseListener, // don't draw what isn't visible continue; }} + g.setColor(Color.black); + offset = -aa[i].height / 2; if (aa[i].hasText) -- 1.7.10.2