From f53d22d39b5c18b7db1d8c7396b5ec19df6ef17b Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Tue, 13 Sep 2016 10:51:27 +0100 Subject: [PATCH] JAL-2195 bug fix to enable restoring jmol session save on Windows on OSX --- src/jalview/gui/Jalview2XML.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index a9ff3b8..7093a9a 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -4009,6 +4009,12 @@ public class Jalview2XML // filename // translation differently. StructureData filedat = oldFiles.get(new File(oldfilenam)); + if (filedat == null) + { + String reformatedOldFilename = oldfilenam.replaceAll("/", + "\\\\"); + filedat = oldFiles.get(new File(reformatedOldFilename)); + } newFileLoc.append(Platform.escapeString(filedat.getFilePath())); pdbfilenames.add(filedat.getFilePath()); pdbids.add(filedat.getPdbId()); -- 1.7.10.2