[Mono-bugs] [Bug 402613] New: Region.IsVisible() sometimes gives incorrect result

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 22 20:42:38 EDT 2008


           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: mono-bugs at lists.ximian.com
        ReportedBy: j.krajicek at atlas.cz
         QAContact: mono-bugs at lists.ximian.com
          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.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.

More information about the mono-bugs mailing list