[Mono-bugs] [Bug 396631] New: PropertyGrid: Font Name fails to paint

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 3 04:36:54 EDT 2008


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


           Summary: PropertyGrid: Font Name fails to paint
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: ASSIGNED
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: contact at i-nz.net
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


On the Font Name sub-property there should be a text sample within the blue
box.  Applies both to SWF and Web, e.g. SWF.Button, and
System.Web.UI.WebControls.Button.

Currently the box is empty.  With extra logging the exception below is seen.

Patch attached -- to assembly System.Drawing.Design.  (Also SVN eol-style
property is missing on this and all other files in this assembly).

exception:
[[
GridEntry.get_PaintValue: System.InvalidCastException: Cannot cast from source
type to destination type.
at System.Drawing.Design.FontNameEditor.PaintValue
(System.Drawing.Design.PaintValueEventArgs e) [0x0003e] in
D:\cygwin\usr\src\mono\mcs\class\System.Drawing.Design\System.Drawing.Design\FontNameEditor.cs:63
at System.Drawing.Design.UITypeEditor.PaintValue (System.Object value,
System.Drawing.Graphics canvas, Rectangle rectangle) [0x00000] in
D:\cygwin\usr\src\mono\mcs\class\System.Drawing\System.Drawing.Design\UITypeEditor.cs:92
at System.Windows.Forms.PropertyGridInternal.GridEntry.PaintValue
(System.Drawing.Graphics gfx, Rectangle rect) [0x0000d] in
D:\cygwin\usr\src\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\GridEntry.cs:733
]]


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


More information about the mono-bugs mailing list