[Mono-bugs] [Bug 431587] New: RectangleF.Intersect(RectangleF rect) error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 2 09:52:14 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=431587


           Summary: RectangleF.Intersect(RectangleF rect) error
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: smieci100 at go2.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


RectangleF.Intersect(RectangleF rect) works differently on windows and on mono.
When rectangles "touch" each other (when they have common side) result on mono
will be an empty Rectangle, and on windows: Rectangle with zero width/height.

Example: 
RectangleF one = new RectangleF(10, 10, 10, 10);
RectangleF two = new RectangleF(20, 10, 10, 10);

one.Intersect(two);
MessageBox.Show(one.ToString());

on windows the result will be: "{X=20,Y=10,Width=0,Height=10}"
and on mono: "{X=0,Y=0,Width=0,Height=0}"


-- 
Configure bugmail: https://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