projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ebbd310
)
Fix readout of numeric combobox
author
H.G. Muller
<h.g.muller@hccnet.nl>
Tue, 17 Apr 2012 13:15:03 +0000 (15:15 +0200)
committer
H.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
patch
|
blob
|
history
diff --git
a/dialogs.c
b/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