From 6d9218e397e068f6249f19bbcce1ade720cfd791 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 23 Nov 2009 20:37:20 -0800 Subject: [PATCH] Fix castling rights when copying FEN to clipboard (again) missed a spot last time --- backend.h | 1 + xboard.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/backend.h b/backend.h index b44c45a..9436347 100644 --- a/backend.h +++ b/backend.h @@ -203,6 +203,7 @@ char *VariantName P((VariantClass v)); VariantClass StringToVariant P((char *e)); double u64ToDouble P((u64 value)); void OutputChatMessage P((int partner, char *mess)); +void EditPositionDone P((Boolean fakeRights)); char *StrStr P((char *string, char *match)); diff --git a/xboard.c b/xboard.c index a27a3be..64a7284 100644 --- a/xboard.c +++ b/xboard.c @@ -6305,6 +6305,7 @@ void CopyPositionProc(w, event, prms, nprms) * have a notion of a position that is selected but not copied. * See http://www.freedesktop.org/wiki/Specifications/ClipboardsWiki */ + if(gameMode == EditPosition) EditPositionDone(TRUE); if (selected_fen_position) free(selected_fen_position); selected_fen_position = (char *)PositionToFEN(currentMove, NULL); if (!selected_fen_position) return; -- 1.7.0.4