Range check error in TryPaintBorder

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70255
    Alan Montgomery
    Participant

    If I compile with range checking on then I get a range check error in TryPaintBorder when it calls acgpDrawRect at the end.

    The issue is with the color parameter.
    The expression Cardinal(bColor) or $FF000000 produces a value that is not in the range for TColor.
    Changing the expression to bColor or TColor($FF000000) solves the issue.

    #70257
    Support
    Keymaster

    Hello, Alan!
    Thank you for the message, this code will be changed in the nearest release.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.