Spinner callback not always invoked
Brought to you by:
nigels
When I use a spinner with limits, the spinner's
callback function is not always executed in response
to a spinning event.
I have made a small sample (file 'Bug.cpp'):
In order to invoke the bug, do the following:
This is my analysis:
See file 'glui_spinner.cpp', function 'do_callbacks',
lines 454-456.
One possible solution is to disable the above lines.
The right solution would probably be to
update 'last_int_val' when the spinner's text is
changed through the textbox (assuming my analysis is
correct).
Note that if you set the value to more than 2, then
the bug does not occur. I believe that 'int_val'
doesn't reach 0 in this case, but I have not
investigated that to full extent.
See description above
wEjKni ysppnfsviccw, [url=http://lfxetwwkwhwv.com/]lfxetwwkwhwv[/url], [link=http://ywaxucmkoaaw.com/]ywaxucmkoaaw[/link], http://vprnpfgrmvyc.com/