From: Jim Procter Date: Fri, 24 May 2013 12:27:49 +0000 (+0100) Subject: JAL-1291 - don't touch the graphics object until after deciding to skip annotation row X-Git-Tag: Jalview_2_9~249^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c9bdc7d7fb996544448e0e9026f906f30f521499;p=jalview.git JAL-1291 - don't touch the graphics object until after deciding to skip annotation row --- 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)