From 8da1861e226023f7c362cb80157bcc8f6ff32db6 Mon Sep 17 00:00:00 2001 From: tcarver <tjc> Date: Tue, 8 Oct 2013 09:59:42 +0100 Subject: [PATCH] draw legend when there are 2 or more plots --- uk/ac/sanger/artemis/components/Plot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uk/ac/sanger/artemis/components/Plot.java b/uk/ac/sanger/artemis/components/Plot.java index 07eb3a980..36068fc36 100644 --- a/uk/ac/sanger/artemis/components/Plot.java +++ b/uk/ac/sanger/artemis/components/Plot.java @@ -1025,7 +1025,7 @@ public abstract class Plot extends JPanel g.drawString(desc, 2, font_height); - if(numPlots < 3 || numPlots > 10) + if(numPlots < 2 || numPlots > 10) return; final FontMetrics fm = g.getFontMetrics(); -- GitLab