From: H.G. Muller Date: Tue, 17 Apr 2012 13:15:03 +0000 (+0200) Subject: Fix readout of numeric combobox X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9addf5a6f332430b00c36e5df8ca13040c2190a5;p=xboard.git Fix readout of numeric combobox As currently no numeric comboboxes are used, this bug was silent. --- diff --git a/dialogs.c b/dialogs.c index 5bed07a..11c6c7a 100644 --- a/dialogs.c +++ b/dialogs.c @@ -204,7 +204,7 @@ GenericReadout (Option *opts, int selected) break; case ComboBox: if(opts[i].min & COMBO_CALLBACK) break; - if(!opts[i].textValue) { *(int*)opts[i].target == opts[i].value; break; } // numeric + if(!opts[i].textValue) { *(int*)opts[i].target = values[i]; break; } // numeric val = ((char**)opts[i].textValue)[values[i]]; if(currentCps) { if(opts[i].value == values[i]) break; // not changed