Translate menus after creation of JAWS menu
[xboard.git] / backend.c
index 193ab42..410488b 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -11641,7 +11641,7 @@ void
 EditTagsEvent()
 {
     char *tags = PGNTags(&gameInfo);
-    EditTagsPopUp(tags);
+    EditTagsPopUp(tags, NULL);
     free(tags);
 }
 
@@ -13302,7 +13302,7 @@ ReplaceComment(index, text)
 
     if(index && sscanf(text, "%f/%d", &score, &len) == 2 && 
        pvInfoList[index-1].depth == len &&
-       pvInfoList[index-1].score == (int) (score*100 + 0.5) &&
+       fabs(pvInfoList[index-1].score - score*100.) < 0.5 &&
        (p = strchr(text, '\n'))) text = p; // [HGM] strip off first line with PV info, if any
     while (*text == '\n') text++;
     len = strlen(text);