TCustomUpDown bug
Original Reporter info from Mantis: Jmarchn
-
Reporter name: Jordi March Nogué
Original Reporter info from Mantis: Jmarchn
- Reporter name: Jordi March Nogué
Description:
In customupdown.inc
function TCustomUpDown.GetPosition: SmallInt;
in line 515:
else if str[I] in ['0'..'9'] then
must be changed for
else if (str[I] in ['0'..'9']) or ((I=1) and (str[1]='-')) then
to enable negative integers (when TCustomUpDown.Min <0)
Optionally:
in line 521:
AV := SmallInt(TruncToInt(StrToFloat(str)))
can be changed for
AV := StrToInt(str)
(since DefaultFormatSettings.DecimalSeparator is not allowed in str)
Mantis conversion info:
- Mantis ID: 35209
- OS: Windows
- OS Build: 10
- Platform: Windows
- Version: 2.3 (SVN)
- Fixed in version: 2.0.2
- Fixed in revision: r60663 (#c39afc12)
- Target version: 2.0.2