From: Jim Procter Date: Sun, 4 Sep 2016 12:20:40 +0000 (+0100) Subject: JAL-1803 recover type field faithfully for mmCIF/PDB file type info X-Git-Tag: Release_2_10_0~47^2~4^2~17 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7e6e10b039ceb93b22681f78decf00ec9d2cc829;p=jalview.git JAL-1803 recover type field faithfully for mmCIF/PDB file type info --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 5d187da..86f8146 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -2982,9 +2982,9 @@ public class Jalview2XML entry.setId(ids[p].getId()); if (ids[p].getType() != null) { - if (ids[p].getType().equalsIgnoreCase("PDB")) + if (PDBEntry.Type.getType(ids[p].getType()) != null) { - entry.setType(PDBEntry.Type.PDB); + entry.setType(PDBEntry.Type.getType(ids[p].getType())); } else {