correction to the integer selection widget

Corrected a bogue where the integer selection widget was not allowing to
select an integer greater than the maximum number at a given position.

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>
Signed-off-by: Pier-Luc Plante <pier-luc.plante.1@ulaval.ca>