Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,102
    • Issues 2,102
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #35209
Closed
Open
Issue created Mar 08, 2019 by FPC Admin account@fpc_adminOwner

TCustomUpDown bug

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
Assignee
Assign to
Time tracking