diff options
author | Alexander Olk <aolk@mono-cvs.ximian.com> | 2006-04-27 00:27:34 +0400 |
---|---|---|
committer | Alexander Olk <aolk@mono-cvs.ximian.com> | 2006-04-27 00:27:34 +0400 |
commit | af54db315ac63fc911e90e7f8366178bdbea6ef7 (patch) | |
tree | dd9333d4c684c7874d61092af2a0ad7b0543241e /mcs/class/System.Drawing.Design | |
parent | cd0e3e4e9ccbc396dcb40ca2249622344520f829 (diff) |
2006-04-26 Alexander Olk <alex.olk@googlemail.com>
* ColorEditor.cs: Dispose the SolidBrush that fills the color
rectangle and don't draw a border which uglifys
PropertyGrid
svn path=/trunk/mcs/; revision=59946
Diffstat (limited to 'mcs/class/System.Drawing.Design')
-rw-r--r-- | mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog b/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog index f85e78e1895..d70cb55562c 100644 --- a/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog +++ b/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog @@ -1,3 +1,9 @@ +2006-04-26 Alexander Olk <alex.olk@googlemail.com> + + * ColorEditor.cs: Dispose the SolidBrush that fills the color + rectangle and don't draw a border which uglifys + PropertyGrid + 2004-02-24 Andreas Nahr <ClassDevelopment@A-SoftTech.com> * BitmapEditor.cs diff --git a/mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs b/mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs index b1dd13e9085..36fed536238 100644 --- a/mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs +++ b/mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs @@ -90,10 +90,9 @@ namespace System.Drawing.Design if (e.Value != null) { Color C = (Color) e.Value; - G.FillRectangle (new SolidBrush (C), e.Bounds); + using (SolidBrush sb = new SolidBrush (C)) + G.FillRectangle (sb, e.Bounds); } - - G.DrawRectangle (Pens.Black, e.Bounds); } } } |