From 7e6e10b039ceb93b22681f78decf00ec9d2cc829 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 4 Sep 2016 13:20:40 +0100 Subject: [PATCH] JAL-1803 recover type field faithfully for mmCIF/PDB file type info --- src/jalview/gui/Jalview2XML.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 1.7.10.2