Commit 14c3e84
Set an explicit Spinner maximum in addSpinnerButton
SWT Spinner defaults to a maximum of 100. addSpinnerButton only set a
minimum, so any stored or default value above 100 was silently clamped,
and a minimum above 100 could collapse the allowed range. Raise the
maximum to Integer.MAX_VALUE (before setting the minimum) so neither
bound silently clamps the value, matching the method contract that only
a minimum is pinned.
Addresses review feedback on #57.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ydAvERPms47vaUevbsoFX1 parent 6e7eebd commit 14c3e84
1 file changed
Lines changed: 5 additions & 1 deletion
File tree
- edu.cuny.citytech.refactoring.common.ui/src/edu/cuny/citytech/refactoring/common/ui
edu.cuny.citytech.refactoring.common.ui/src/edu/cuny/citytech/refactoring/common/ui/InputPage.java
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
0 commit comments