Author: jordi
Date: 2005-03-16 10:56:56 -0500 (Wed, 16 Mar 2005)
New Revision: 41909

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs
Log:
2005-03-16  Jordi Mas i Hernandez <[EMAIL PROTECTED]>

        * ScrollBar.cs:
          - Only change Maximum and Minimum when need it (bug fix)



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-03-16 15:12:30 UTC (rev 41908)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-03-16 15:56:56 UTC (rev 41909)
@@ -1,3 +1,8 @@
+2005-03-16  Jordi Mas i Hernandez <[EMAIL PROTECTED]>
+
+       * ScrollBar.cs:
+         - Only change Maximum and Minimum when need it (bug fix)
+
 2005-03-15  Peter Bartok  <[EMAIL PROTECTED]>
 
        * Form.cs: Use Handle for icon, to trigger creation if

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs     
2005-03-16 15:12:30 UTC (rev 41908)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs     
2005-03-16 15:56:56 UTC (rev 41909)
@@ -330,6 +330,9 @@
                public int Maximum {
                        get { return maximum; }
                        set {
+                               if (maximum == value)
+                                       return;
+                                       
                                maximum = value;
 
                                if (maximum < minimum)
@@ -348,6 +351,9 @@
                public int Minimum {
                        get { return minimum; }
                        set {
+                               if (minimum == value)
+                                       return;
+                                       
                                minimum = value;
 
                                if (minimum > maximum)

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

Reply via email to