X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxboard.c;fp=xaw%2Fxboard.c;h=91d35b732655e29bb27ec264d7dc69b66268d977;hb=2185e1a810176b9d35911045d876513fa86b5dc2;hp=f1e991dd6c0918112195ccec42367780e35ef72d;hpb=d1c7bb14e175de9f32640a8d9ebc1132258c3d84;p=xboard.git diff --git a/xaw/xboard.c b/xaw/xboard.c index f1e991d..91d35b7 100644 --- a/xaw/xboard.c +++ b/xaw/xboard.c @@ -1998,6 +1998,7 @@ PasteGameCB (Widget w, XtPointer client_data, Atom *selection, Atom *type, XtPointer value, unsigned long *len, int *format) { FILE* f; + int flip = appData.flipView; if (value == NULL || *len == 0) { return; /* nothing had been selected to copy */ } @@ -2009,7 +2010,9 @@ PasteGameCB (Widget w, XtPointer client_data, Atom *selection, fwrite(value, 1, *len, f); fclose(f); XtFree(value); + if(!appData.autoFlipView) appData.flipView = flipView; LoadGameFromFile(gamePasteFilename, 0, gamePasteFilename, TRUE); + appData.flipView = flip; } /* called when Paste Game button is pressed,