Author: lewing
Date: 2008-01-17 15:14:56 -0500 (Thu, 17 Jan 2008)
New Revision: 93194
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/shape.cpp
Log:
Merge the changes
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2008-01-17 20:08:52 UTC (rev 93193)
+++ trunk/moon/src/ChangeLog 2008-01-17 20:14:56 UTC (rev 93194)
@@ -26,6 +26,12 @@
* text.cpp (TextBlock::InsideObject): use
uielement_transform_point instead of duplicating it.
+2008-01-17 Larry Ewing <[EMAIL PROTECTED]>
+
+ * shape.cpp (Rectangle::BuildPath): fix the origin calculation for
+ unstroked rectangles (see test-rectangle-aliasing.xaml). Suggest
+ more rectangle testing after this.
+
2008-01-17 Jackson Harper <[EMAIL PROTECTED]>
* xaml.cpp: After setting a property stop walking up the element
Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp 2008-01-17 20:08:52 UTC (rev 93193)
+++ trunk/moon/src/shape.cpp 2008-01-17 20:14:56 UTC (rev 93194)
@@ -889,10 +889,9 @@
break;
}
- if ((!IsStroked () || (t != 0.0)) && compute_origin) {
- x = t / 2.0;
- y = x - 0.5;
- }
+ if (compute_origin && (!IsStroked () || (t != 1.0)))
+ x = y = t / 2.0;
+
SetShapeFlags (UIElement::SHAPE_NORMAL);
shape:
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches