From 758b036dc3952b7a302ec7939471aae80d3dc6c1 Mon Sep 17 00:00:00 2001 From: Andreia Gaita Date: Wed, 23 May 2007 01:20:57 +0000 Subject: [PATCH] 2007-05-22 Andreia Gaita * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText without updating the text. svn path=/trunk/mcs/; revision=77822 --- .../Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 5 +++++ .../System.Windows.Forms/NumericUpDown.cs | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index d8de564effb..83e2d0e5353 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,8 @@ +2007-05-22 Andreia Gaita + + * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText + without updating the text. + 2007-05-22 Jonathan Pobst * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont () diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NumericUpDown.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NumericUpDown.cs index 25a5d1aaaaf..2a341c34bfe 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NumericUpDown.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NumericUpDown.cs @@ -398,8 +398,9 @@ namespace System.Windows.Forms { } private string UpdateEditText (decimal val) { - if (suppress_validation > 0) - return Text; + // TODO: why is this here? +// if (suppress_validation > 0) +// return Text; decimal ret = val; string text = Text; -- 2.25.1