Modify

Opened 9 years ago

Closed 9 years ago

#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, 9 years ago

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, 9 years ago

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.