From 9a638d97a527346db031a95f36143f7bd4e63ec5 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 8 May 2011 13:22:33 +0200 Subject: [PATCH] Fix button sizing in generic popup --- xoptions.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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++; -- 1.7.0.4