Bug when entering a negative number into a spinner widget.

Create issue
Issue #110 resolved
Paul Turner created an issue

When entering a negative number into a spinner widget, an exception is thrown saying that the string cannot be converted to a numerical representation.

Reproducibility: always

Steps to reproduce: Delete all other text within the spinner and press the minus sign key.

Comments (1)

  1. Paul Turner reporter

    scanf does not parse a single '-' sign as a number, so the exception was thrown. Adding a check for the solitary minus sign and handling it directly resolves the issue.

  2. Log in to comment