X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=a7d30f629075f22aea916b78a538699b841a7da2;hb=988cc3c7cdc6ad6f0441e6dfa93881fae2119caa;hp=acc75bf35657d8980c8e72585321100d6a4bcc12;hpb=9d84fbc414dd9e4112e6ba42c9eca6c2244be6db;p=xboard.git diff --git a/dialogs.c b/dialogs.c index acc75bf..a7d30f6 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1028,7 +1028,7 @@ static char *tagsText; static int NewTagsCallback (int n) { - ReplaceTags(tagsText, &gameInfo); + if(!bookUp) ReplaceTags(tagsText, &gameInfo); return 1; } @@ -1043,7 +1043,7 @@ static void changeTags (int n) { GenericReadout(tagsOptions, 1); - if(bookUp) SaveToBook(tagsText); else + if(bookUp) SaveToBook(tagsText), DisplayBook(currentMove); else ReplaceTags(tagsText, &gameInfo); } @@ -2144,6 +2144,7 @@ Exp (int n, int x, int y) if(SeekGraphClick(Press, x, y, 1)) return NULL; if(but1 && !PromoScroll(x, y)) DragPieceMove(x, y); if(but3) MovePV(x, y, lineGap + BOARD_HEIGHT * (squareSize + lineGap)); + if(appData.highlightDragging) HoverEvent(hi2X, hi2Y, x, y); return NULL; } if(n != 10 && PopDown(PromoDlg)) fromX = fromY = -1; // user starts fiddling with board when promotion dialog is up