Fix castling rights when copying FEN to clipboard (again)
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 24 Nov 2009 04:37:20 +0000 (20:37 -0800)
committerArun Persaud <arun@nubati.net>
Tue, 24 Nov 2009 04:39:44 +0000 (20:39 -0800)
missed a spot last time

backend.h
xboard.c

index 3ad4966..c2997f4 100644 (file)
--- 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));
index 900d5b9..3f1983d 100644 (file)
--- 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;