(JAL-1049) only store state reference for sequence we are creating PDBentry for
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 12 Feb 2012 15:02:53 +0000 (15:02 +0000)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 12 Feb 2012 15:02:53 +0000 (15:02 +0000)
src/jalview/gui/Jalview2XML.java

index cb29ab5..e259309 100644 (file)
@@ -612,7 +612,8 @@ public class Jalview2XML
 
                 for (int smap = 0; smap < jmol.jmb.sequence[peid].length; smap++)
                 {
-                  if (jal.findIndex(jmol.jmb.sequence[peid][smap]) > -1)
+//                  if (jal.findIndex(jmol.jmb.sequence[peid][smap]) > -1)
+                  if (jds==jmol.jmb.sequence[peid][smap])
                   {
                     StructureState state = new StructureState();
                     state.setVisible(true);