From: H.G. Muller Date: Tue, 24 Nov 2009 04:37:20 +0000 (-0800) Subject: Fix castling rights when copying FEN to clipboard (again) X-Git-Tag: v4.4.2~9 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6d9218e397e068f6249f19bbcce1ade720cfd791;p=xboard.git Fix castling rights when copying FEN to clipboard (again) missed a spot last time --- 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;