set labels null if not being used
authoramwaterhouse <Andrew Waterhouse>
Thu, 7 Dec 2006 10:24:22 +0000 (10:24 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 7 Dec 2006 10:24:22 +0000 (10:24 +0000)
src/jalview/gui/IdCanvas.java

index 9fcbb6e..d1f130b 100755 (executable)
@@ -292,6 +292,9 @@ public class IdCanvas extends JPanel
         }\r
         else\r
         {\r
+          //No need to hang on to labels if we're not wrapped\r
+          labels = null;\r
+\r
           //Now draw the id strings\r
           int panelWidth = getWidth();\r
           int xPos = 0;\r