From: H.G. Muller Date: Sun, 8 May 2011 11:22:33 +0000 (+0200) Subject: Fix button sizing in generic popup X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9a638d97a527346db031a95f36143f7bd4e63ec5;p=xboard.git Fix button sizing in generic popup --- diff --git a/xoptions.c b/xoptions.c index 78bd9d7..055d804 100644 --- a/xoptions.c +++ b/xoptions.c @@ -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++;