X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fgui%2FAppJmol.java;h=ba4eb9ca048b7568beabff276409f83080ba6f64;hb=d76c189f5d49526a39d03e291f84400b95c177b2;hp=5b935b7d6c18dc70ea019df099d8eedef5e03d20;hpb=14488926488f05f802480c508da1cc4ed53c5b1a;p=jalview.git diff --git a/src/jalview/gui/AppJmol.java b/src/jalview/gui/AppJmol.java index 5b935b7..ba4eb9c 100644 --- a/src/jalview/gui/AppJmol.java +++ b/src/jalview/gui/AppJmol.java @@ -434,7 +434,7 @@ public class AppJmol extends StructureViewerBase try { makePDBImage(null, type, null, - BitmapImageSizing.defaultBitmapImageSizing(), null); + BitmapImageSizing.defaultBitmapImageSizing()); } catch (ImageOutputException ioex) { Console.error("Unexpected error whilst writing " + type.toString(), @@ -443,8 +443,7 @@ public class AppJmol extends StructureViewerBase } public void makePDBImage(File file, ImageMaker.TYPE type, String renderer, - BitmapImageSizing userBis, List extraCommands) - throws ImageOutputException + BitmapImageSizing userBis) throws ImageOutputException { int width = getWidth(); int height = getHeight(); @@ -473,24 +472,8 @@ public class AppJmol extends StructureViewerBase } } - String saveStateNameTemp = "JalviewSaveStateTemp"; - jmb.executeCommand( - new StructureCommand("save STATE " + saveStateNameTemp), - false); - - if (extraCommands != null) - { - for (String cmd : extraCommands) - { - jmb.executeCommand(new StructureCommand(cmd), false); - } - } - jmb.jmolViewer.requestRepaintAndWait("image export"); jmb.jmolViewer.renderScreenImage(ig2, usewidth, useheight); - jmb.executeCommand( - new StructureCommand("restore STATE " + saveStateNameTemp), - false); } }; String view = MessageManager.getString("action.view")