Must catch image outOfMemoryError
authoramwaterhouse <Andrew Waterhouse>
Tue, 24 Oct 2006 11:22:29 +0000 (11:22 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 24 Oct 2006 11:22:29 +0000 (11:22 +0000)
src/jalview/gui/AlignmentPanel.java

index bd87bb2..c3ebd71 100755 (executable)
@@ -873,6 +873,9 @@ public class AlignmentPanel extends GAlignmentPanel
       height += annotationPanel.adjustPanelHeight() + 3;\r
     }\r
 \r
+    try\r
+    {\r
+\r
     jalview.util.ImageMaker im;\r
     if(type==jalview.util.ImageMaker.PNG)\r
       im  = new jalview.util.ImageMaker(this,\r
@@ -885,8 +888,6 @@ public class AlignmentPanel extends GAlignmentPanel
                                        "Create EPS file from alignment",\r
                                         width, height, file, alignFrame.getTitle() );\r
 \r
-    try\r
-    {\r
       if (av.getWrapAlignment())\r
       {\r
         if(im.getGraphics()!=null)\r