Modify

#3545 closed Bug (No Bug)

Incorrect conversion of Pos to Rect and vice versa

Reported by: anonymous Owned by:
Milestone: Component: Standard UDFs
Version: 3.3.14.2 Severity: None
Keywords: Cc:

Description

Functions _WinAPI_CreateRectEx and _WinAPI_GetPosFromRect return incorrect results.

_WinAPI_CreateRectEx must reduce the result by one for Right and Bottom. _WinAPI_GetPosFromRect must increase the result by one for Width and Height.

Attachments (0)

Change History (2)

comment:1 by anonymous, on Apr 26, 2017 at 11:06:35 AM

Seems like it no bug.

RECT structure
By convention, the right and bottom edges of the rectangle are normally considered exclusive. In other words, the pixel whose coordinates are ( right, bottom ) lies immediately outside of the rectangle.

comment:2 by BrewManNH, on May 30, 2017 at 3:01:26 AM

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.