From: H.G. Muller Date: Mon, 10 Dec 2012 12:32:49 +0000 (+0100) Subject: Do not clear PGN tags on Analyze File X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9496b373d121d46aee0dbace488aca81909435da;p=xboard.git Do not clear PGN tags on Analyze File --- 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);