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


           Summary: Region.IsVisible() sometimes gives incorrect result
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=223636)
 --> (https://bugzilla.novell.com/attachment.cgi?id=223636)
picture of what's happening

In some cases, IsVisible(Rectangle) method of a Region instance gives incorrect
result (example code below).  In the example, an infinite region 'r' is created
and two Rectangles are Excluded, when r.IsVisible() is called on a specific
rectangle outside any of the excluded ones, Linux version of Mono says it is
not visible (output "False").  The Windows version of Mono and MS
implementation give the correct result (output "True").  See attached image for
a graphical explanation.

This only seems to happen in some cases, if I change the tested rectangle the
output is likely to be correct.

Tested in the official Mono openSUSE live CD (Mono 1.9.1).

Example code:

static void bug()
{
    Region r = new Region();
    r.MakeInfinite();

    r.Exclude(new Rectangle(387,292,189,133));
    r.Exclude(new Rectangle(387,66,189,133));

    Console.WriteLine(r.IsVisible(new Rectangle(66,292,189,133)));
}


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to