From 116c74a028f628d907dd82a4d763498042f55a5b Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 13 Mar 2019 10:50:39 +0000 Subject: [PATCH] JAL-3141 fix up merge artefact so BackupFilesTest passes --- src/jalview/gui/AlignFrame.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 011610c..a9d5b86 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -1239,7 +1239,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, */ public void saveAlignment(String file, FileFormatI format) { - lastSaveSuccessful = false; + lastSaveSuccessful = true; lastFilenameSaved = file; lastFormatSaved = format; @@ -1292,8 +1292,9 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, BackupFiles backupfiles = new BackupFiles(file); try { - PrintWriter out = new PrintWriter( - new FileWriter(backupfiles.getTempFilePath())); + String tempFilePath = backupfiles.getTempFilePath(); + PrintWriter out = new PrintWriter( + new FileWriter(tempFilePath)); out.print(output); out.close(); -- 1.7.10.2