Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Control.cs (OnInvalidated): fix NRE relating to last change.

2006-10-11  Chris Toshok  <toshok@ximian.com>


svn path=/trunk/mcs/; revision=66570
  • Loading branch information...
commit f3f9064bad3fe6484ce53ae3260afdabdfb005b5 1 parent ed30232
Chris Toshok authored
View
4 mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
@@ -1,5 +1,9 @@
2006-10-11 Chris Toshok <toshok@ximian.com>
+ * Control.cs (OnInvalidated): fix NRE relating to last change.
+
+2006-10-11 Chris Toshok <toshok@ximian.com>
+
* XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
atoms in _NET_WM_STATE here if the window is maximized. We need
to do this because we're *replacing* the existing _NET_WM_STATE
View
6 mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
@@ -4470,7 +4470,11 @@ protected virtual bool ProcessKeyEventArgs (ref Message msg)
// considered Visible (the
// invalid_region.IsVisible call) in
// the WM_PAINT handling below.
- invalid_region.Union (Rectangle.Inflate(e.InvalidRect, 1,1));
+ Rectangle r = Rectangle.Inflate(e.InvalidRect, 1,1);
+ if (invalid_region == null)
+ invalid_region = new Region (r);
+ else
+ invalid_region.Union (r);
}
if (Invalidated!=null) Invalidated(this, e);
}
Please sign in to comment.
Something went wrong with that request. Please try again.