Author: alanmc
Date: 2007-07-20 14:58:54 -0400 (Fri, 20 Jul 2007)
New Revision: 82382

Modified:
   trunk/lunareclipse/ChangeLog
   trunk/lunareclipse/Model/Draw/DrawBase.cs
   trunk/lunareclipse/Properties/PropertyGroupLayout.cs
Log:
* Model/Draw/DrawBase.cs: Removed excess variable
* Properties/PropertyGroupLayout.cs: Fixed bizarre bug where hooking
  into Changed and ValuedChanged would result in the spinbutton
  incrementing twice.

Modified: trunk/lunareclipse/ChangeLog
===================================================================
--- trunk/lunareclipse/ChangeLog        2007-07-20 18:13:02 UTC (rev 82381)
+++ trunk/lunareclipse/ChangeLog        2007-07-20 18:58:54 UTC (rev 82382)
@@ -1,5 +1,12 @@
 2007-07-20  Alan McGovern <[EMAIL PROTECTED]> 
 
+       * Model/Draw/DrawBase.cs: Removed excess variable
+       * Properties/PropertyGroupLayout.cs: Fixed bizarre bug where hooking
+         into Changed and ValuedChanged would result in the spinbutton
+         incrementing twice.
+
+2007-07-20  Alan McGovern <[EMAIL PROTECTED]> 
+
        * Model/Draw/SelectionDraw.cs: Cosmetic
 
 2007-07-20  Alan McGovern <[EMAIL PROTECTED]> 

Modified: trunk/lunareclipse/Model/Draw/DrawBase.cs
===================================================================
--- trunk/lunareclipse/Model/Draw/DrawBase.cs   2007-07-20 18:13:02 UTC (rev 
82381)
+++ trunk/lunareclipse/Model/Draw/DrawBase.cs   2007-07-20 18:58:54 UTC (rev 
82382)
@@ -135,7 +135,6 @@
         
         internal static void GetTransformedBounds(Visual visual, out double 
top, out double left, out double width, out double height)
         {
-            RotateTransform transform = 
(RotateTransform)visual.GetValue(Canvas.RenderTransformProperty);
             top = (double)visual.GetValue(Canvas.TopProperty);
             left = (double)visual.GetValue(Canvas.LeftProperty);
             width = (double)visual.GetValue(Shape.WidthProperty) + left;

Modified: trunk/lunareclipse/Properties/PropertyGroupLayout.cs
===================================================================
--- trunk/lunareclipse/Properties/PropertyGroupLayout.cs        2007-07-20 
18:13:02 UTC (rev 82381)
+++ trunk/lunareclipse/Properties/PropertyGroupLayout.cs        2007-07-20 
18:58:54 UTC (rev 82382)
@@ -111,10 +111,6 @@
                                ((SpinButton) widget).SetRange (0.0, (double) 
Int32.MaxValue);
                                ((SpinButton) widget).Numeric = true;
                                
-//                             Console.WriteLine ("Layout: {0} = {1} ({2})", 
propName, 
-//                                                value != null ? 
value.ToString () : "(null)", 
-//                                                value != null ? 
value.GetType ().ToString () : "(null)");
-                               
                                if (value != null) {
                                        switch (value.GetType ().Name) {
                                        case "Double":
@@ -125,10 +121,9 @@
                                                break;
                                        }
                                }
+
+                               ((SpinButton) widget).ValueChanged += new 
EventHandler(OnIntegerChanged);
                                
-                               ((SpinButton) widget).Changed += new 
EventHandler (OnIntegerChanged);
-                               ((SpinButton) widget).ValueChanged += new 
EventHandler (OnIntegerChanged);
-                               
                                propTable.Add (widget, prop);
                                widget.Show ();
                                

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

Reply via email to