Fix readout of numeric combobox
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 17 Apr 2012 13:15:03 +0000 (15:15 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 17 Apr 2012 13:15:03 +0000 (15:15 +0200)
As currently no numeric comboboxes are used, this bug was silent.

dialogs.c

index 5bed07a..11c6c7a 100644 (file)
--- 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