Author: jackson
Date: 2007-11-09 12:05:38 -0500 (Fri, 09 Nov 2007)
New Revision: 89327
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/xaml.cpp
Log:
* xaml.cpp: Closepath needs to draw a line to the path's
* starting
point and needs to create a new path figure element at the
starting point.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-11-09 16:46:04 UTC (rev 89326)
+++ trunk/moon/src/ChangeLog 2007-11-09 17:05:38 UTC (rev 89327)
@@ -1,5 +1,11 @@
2007-11-09 Jackson Harper <[EMAIL PROTECTED]>
+ * xaml.cpp: Closepath needs to draw a line to the path's starting
+ point and needs to create a new path figure element at the
+ starting point.
+
+2007-11-09 Jackson Harper <[EMAIL PROTECTED]>
+
* type.cpp|h.in: Add an accesor for the ContentProperty name.
2007-11-09 Jackson Harper <[EMAIL PROTECTED]>
Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp 2007-11-09 16:46:04 UTC (rev 89326)
+++ trunk/moon/src/xaml.cpp 2007-11-09 17:05:38 UTC (rev 89327)
@@ -2028,10 +2028,38 @@
break;
}
case 'z':
- case 'Z':
+ case 'Z': {
+ Point *p = path_figure_get_start_point (pf);
+
+ if (!p)
+ p = new Point (0, 0);
+
+ LineSegment* ls = new LineSegment ();
+ ls->SetValue (LineSegment::PointProperty, Value (*p));
+
+ psc->Add (ls);
+ ls->unref ();
+
prev = NULL;
path_figure_set_is_closed (pf, true);
+
+ cp.x = p->x;
+ cp.y = p->y;
+
+ if (pf) {
+ pfc->Add (pf);
+ pf->unref ();
+ }
+
+ pf = new PathFigure ();
+ psc = new PathSegmentCollection ();
+ pf->SetValue (PathFigure::SegmentsProperty, psc);
+ psc->unref ();
+
+ path_figure_set_start_point (pf, p);
+
break;
+ }
default:
break;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches