[Mono-bugs] [Bug 554635] New: System.Drawing.Point.Point(int) transposes X & Y

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 11 13:25:11 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=554635


           Summary: System.Drawing.Point.Point(int) transposes X & Y
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: landrus2 at by-rite.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=326919)
 --> (http://bugzilla.novell.com/attachment.cgi?id=326919)
A Form that should display Red where it is clicked

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us)
AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9

The constructor (.ctor) of Point that takes a single int parameter does not
work as described in the documentation
(http://msdn.microsoft.com/en-us/library/bf1b4f2b.aspx).  It transposes the X &
Y coordinates.  Its behavior is consistent with the <remarks /> before its
source code.  However, the documented description of the parameter is probably
more useful because it is consistent with the LParam of a mouse Message.

Reproducible: Always

Steps to Reproduce:
1. Handle a WM_LBUTTONDOWN Message (or any mouse Message).
2. Construct a Point from the LParam property of the Message. { Point p = new
Point ((int) m.LParam); }
3. Draw a small Rectangle at that Point, or display or log the coordinates of
the Point.
Actual Results:  
The X & Y coordinates of the mouse event are transposed in the Point. 
Rectangles appear farther to the right as the mouse is clicked farther down and
vice versa.

Expected Results:  
The X & Y coordinates of the mouse event should be accurately reflected in the
Point.  If drawing a Rectangle, it should appear directly under the cursor.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list