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
diff options
context:
space:
mode:
authorsancheolz@gmail.com <sancheolz@gmail.com>2019-03-13 09:21:52 +0300
committerMarek Safar <marek.safar@gmail.com>2019-03-16 12:30:49 +0300
commitf278deee46ff2f64213e5fd2831b383aee3f99c9 (patch)
treecf289bc7ffbc313e9e1d1626344f254dde29f85a /mcs/class/System.Windows.Forms
parent9522ae42bbafff17ef948b5381003a448604b1d9 (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.cs2
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);