Author: pbartok
Date: 2005-03-29 16:57:35 -0500 (Tue, 29 Mar 2005)
New Revision: 42359

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabPage.cs
Log:
2005-03-18  Stefan Buehler  <[EMAIL PROTECTED]>

        * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid, 
          fixes bug #72588.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-03-29 21:52:01 UTC (rev 42358)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-03-29 21:57:35 UTC (rev 42359)
@@ -1,3 +1,8 @@
+2005-03-18  Stefan Buehler  <[EMAIL PROTECTED]>
+
+       * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid, 
+         fixes bug #72588.
+
 2005-03-28  Alexander Olk  <[EMAIL PROTECTED]>
 
        * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabPage.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabPage.cs       
2005-03-29 21:52:01 UTC (rev 42358)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabPage.cs       
2005-03-29 21:57:35 UTC (rev 42359)
@@ -194,9 +194,9 @@
 
                protected override void SetBoundsCore (int x, int y, int width, 
int height, BoundsSpecified specified) 
                {
-                       Rectangle display = Owner.DisplayRectangle;
+                       if (Owner != null && Owner.IsHandleCreated) {
+                               Rectangle display = Owner.DisplayRectangle;
 
-                       if (Owner != null && Owner.IsHandleCreated) {
                                base.SetBoundsCore (display.X, display.Y,
                                                        display.Width, 
display.Height,
                                                        BoundsSpecified.All);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to