From: amwaterhouse Date: Mon, 26 Mar 2007 17:25:41 +0000 (+0000) Subject: Add seq mapping for multiple seq 2 pdbs X-Git-Tag: Release_2_3~297 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2ff689ff801298ecd96dd9b4eddf1c443ef30fa8;p=jalview.git Add seq mapping for multiple seq 2 pdbs --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 3c8d31a..ba2364a 100755 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -1828,10 +1828,13 @@ public class Jalview2XML new java.awt.Rectangle(x, y, width, height)); } - else + else if(comp!=null) { StructureSelectionManager.getStructureSelectionManager() - .setMapping(seq, pdbFile, jalview.io.AppletFormatAdapter.FILE); + .setMapping(seq, pdbFile, + jalview.io.AppletFormatAdapter.FILE); + + ( (AppJMol) comp).addSequence(seq); } } }