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: hgm-4.20100107~32 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ab34434950d5714d74c1fe3d47905e54cf2688b8;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 3ad4966..c2997f4 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 900d5b9..3f1983d 100644 --- a/xboard.c +++ b/xboard.c @@ -5605,6 +5605,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;