Fix button sizing in generic popup
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 8 May 2011 11:22:33 +0000 (13:22 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sun, 8 May 2011 11:22:33 +0000 (13:22 +0200)
xoptions.c

index 78bd9d7..055d804 100644 (file)
@@ -1517,7 +1517,7 @@ GenericPopUp(Option *option, char *title, int dlgNr)
            XtSetArg(args[j], XtNlabel, _(option[i].name));  j++;
            if(option[i].min & 1) { XtSetArg(args[j], XtNfromHoriz, last);  j++; }
            else  { XtSetArg(args[j], XtNfromHoriz, NULL);  j++; lastrow = forelast; }
-           if(option[i].max) XtSetArg(args[j], XtNwidth, option[i].max);  j++;
+           if(option[i].max) { XtSetArg(args[j], XtNwidth, option[i].max);  j++; }
            if(option[i].textValue) { // special for buttons of New Variant dialog
                XtSetArg(args[j], XtNsensitive, appData.noChessProgram || option[i].value < 0
                                         || strstr(first.variants, VariantName(option[i].value))); j++;