diff options
author | sancheolz@gmail.com <sancheolz@gmail.com> | 2019-03-13 09:21:52 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-03-16 12:30:49 +0300 |
commit | f278deee46ff2f64213e5fd2831b383aee3f99c9 (patch) | |
tree | cf289bc7ffbc313e9e1d1626344f254dde29f85a /mcs/class/System.Windows.Forms | |
parent | 9522ae42bbafff17ef948b5381003a448604b1d9 (diff) |
Fix Stackoverflow when SplitContainer`s SplitterDistance setted in SplitterMoved event subscription
Diffstat (limited to 'mcs/class/System.Windows.Forms')
-rw-r--r-- | mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs index a27ce51eb86..ec3f8a19c97 100644 --- a/mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs +++ b/mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs @@ -395,7 +395,7 @@ namespace System.Windows.Forms if (value < panel1_min_size) value = panel1_min_size; - bool updated = true; + bool updated; if (orientation == Orientation.Vertical) { if (this.Width - (this.SplitterWidth + value) < panel2_min_size) value = this.Width - (this.SplitterWidth + panel2_min_size); |