Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorJordi Mas i Hernandez <jordi@mono-cvs.ximian.com>2004-09-01 14:20:57 +0400
committerJordi Mas i Hernandez <jordi@mono-cvs.ximian.com>2004-09-01 14:20:57 +0400
commit9efeee350d492227e6ff39fd95510e803c4510f8 (patch)
tree83fc9c5a193570efca0acce320156b007596f5e7 /mcs/class
parentf79122f5127035b026b89d2f65a3e730e739d35d (diff)
fires OnFontChanged event
svn path=/trunk/mcs/; revision=33143
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
index 2384845e9b3..1b97dabbc2d 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
@@ -29,9 +29,12 @@
// Jaak Simm jaaksimm@firm.ee
// John Sohn jsohn@columbus.rr.com
//
-// $Revision: 1.54 $
+// $Revision: 1.55 $
// $Modtime: $
// $Log: Control.cs,v $
+// Revision 1.55 2004/09/01 10:20:57 jordi
+// fires OnFontChanged event
+//
// Revision 1.54 2004/09/01 01:41:31 pbartok
// - Added firing of BackColorChanged event
// - Added TopLevelControl property
@@ -1026,7 +1029,11 @@ namespace System.Windows.Forms
}
set {
- font=value;
+ if (font == value)
+ return;
+
+ font = value;
+ OnFontChanged (EventArgs.Empty);
Refresh();
}
}