Author: toshok
Date: 2007-06-30 14:04:37 -0400 (Sat, 30 Jun 2007)
New Revision: 81117

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/shape.cpp
Log:
2007-06-30  Chris Toshok  <[EMAIL PROTECTED]>

        * shape.cpp (Shape::OnPropertyChanged): when need to update our
        bounding rectangle when a number of the stroke properties change.
        Also update them when the stroke itself is changed.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-30 17:05:39 UTC (rev 81116)
+++ trunk/moon/src/ChangeLog    2007-06-30 18:04:37 UTC (rev 81117)
@@ -1,3 +1,9 @@
+2007-06-30  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * shape.cpp (Shape::OnPropertyChanged): when need to update our
+       bounding rectangle when a number of the stroke properties change.
+       Also update them when the stroke itself is changed.
+
 2007-06-29  Chris Toshok  <[EMAIL PROTECTED]>
 
        * text.cpp, text.h: Add back in TextBlock::OnSubPropertyChanged -

Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp    2007-06-30 17:05:39 UTC (rev 81116)
+++ trunk/moon/src/shape.cpp    2007-06-30 18:04:37 UTC (rev 81117)
@@ -307,6 +307,8 @@
                                stroke->Attach (NULL, this);
                                stroke->ref ();
                        }
+
+                       UpdateBounds ();
                } else if (prop == Shape::FillProperty) {
                        if (fill != NULL) {
                                fill->Detach (NULL, this);
@@ -317,6 +319,13 @@
                                fill->Attach (NULL, this);
                                fill->ref ();
                        }
+               } else if (prop == Shape::StrokeDashCapProperty
+                          || prop == Shape::StrokeEndLineCapProperty
+                          || prop == Shape::StrokeLineJoinProperty
+                          || prop == Shape::StrokeMiterLimitProperty
+                          || prop == Shape::StrokeStartLineCapProperty
+                          || prop == Shape::StrokeThicknessProperty) }
+                       UpdateBounds ();
                }
                
                Invalidate ();

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

Reply via email to