Author: spouliot
Date: 2007-12-07 09:47:33 -0500 (Fri, 07 Dec 2007)
New Revision: 90933
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/shape.cpp
Log:
shape.cpp: In Shape::ComputeBounds don't compute half thickness unless the
value is needed.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-12-07 14:27:29 UTC (rev 90932)
+++ trunk/moon/src/ChangeLog 2007-12-07 14:47:33 UTC (rev 90933)
@@ -1,3 +1,8 @@
+2007-12-07 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * shape.cpp: In Shape::ComputeBounds don't compute half thickness
+ unless the value is needed.
+
2007-12-07 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* xaml.cpp: Plug more leaks.
Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp 2007-12-07 14:27:29 UTC (rev 90932)
+++ trunk/moon/src/shape.cpp 2007-12-07 14:47:33 UTC (rev 90933)
@@ -281,9 +281,9 @@
}
#endif
- double t = shape_get_stroke_thickness (this) * .5;
+ if (w != 0.0 && h != 0.0) {
+ double t = shape_get_stroke_thickness (this) * .5;
- if (w != 0.0 && h != 0.0) {
bounds = bounding_rect_for_transformed_rect (&absolute_xform,
IntersectBoundsWithClipPath (Rect (-t, -t, w + 2 * t, h
+ 2 * t), false));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches