From 9addf5a6f332430b00c36e5df8ca13040c2190a5 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 17 Apr 2012 15:15:03 +0200 Subject: [PATCH] Fix readout of numeric combobox As currently no numeric comboboxes are used, this bug was silent. --- dialogs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.0.4