From 9496b373d121d46aee0dbace488aca81909435da Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 10 Dec 2012 13:32:49 +0100 Subject: [PATCH] Do not clear PGN tags on Analyze File --- backend.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend.c b/backend.c index 4b09ab8..614f725 100644 --- a/backend.c +++ b/backend.c @@ -12340,9 +12340,7 @@ LoadGame (FILE *f, int gameNumber, char *title, int useList) if (oldGameMode == AnalyzeFile || oldGameMode == AnalyzeMode) { appData.loadGameIndex = -1; // [HGM] order auto-stepping through games - keepInfo = 1; AnalyzeFileEvent(); - keepInfo = 0; } if(creatingBook) return TRUE; @@ -13619,7 +13617,9 @@ AnalyzeFileEvent () } if (gameMode != AnalyzeMode) { + keepInfo = 1; // mere annotating should not alter PGN tags EditGameEvent(); + keepInfo = 0; if (gameMode != EditGame) return; if (!appData.showThinking) ToggleShowThinking(); ResurrectChessProgram(); @@ -13632,7 +13632,6 @@ AnalyzeFileEvent () gameMode = AnalyzeFile; pausing = FALSE; ModeHighlight(); - SetGameInfo(); StartAnalysisClock(); GetTimeMark(&lastNodeCountTime); -- 1.7.0.4