Fix castling rights when copying FEN to clipboard (again)
[xboard.git] / xboard.c
index a27a3be..64a7284 100644 (file)
--- 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;