gegl r2646 - in trunk: . gegl/property-types
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2646 - in trunk: . gegl/property-types
- Date: Mon, 20 Oct 2008 09:40:42 +0000 (UTC)
Author: ok
Date: Mon Oct 20 09:40:42 2008
New Revision: 2646
URL: http://svn.gnome.org/viewvc/gegl?rev=2646&view=rev
Log:
* gegl/property-types/gegl-vector.c: (gegl_vector_parse_svg_path):
made perser tolerant of skipped path instructions (doesn't do M->L)
properly yet.
Modified:
trunk/ChangeLog
trunk/gegl/property-types/gegl-vector.c
Modified: trunk/gegl/property-types/gegl-vector.c
==============================================================================
--- trunk/gegl/property-types/gegl-vector.c (original)
+++ trunk/gegl/property-types/gegl-vector.c Mon Oct 20 09:40:42 2008
@@ -1588,13 +1588,21 @@
{
GeglVectorPrivate *priv = GEGL_VECTOR_GET_PRIVATE (vector);
const gchar *p = path;
+ KnotInfo *previnfo = NULL;
gdouble x0, y0, x1, y1, x2, y2;
while (*p)
{
gchar type = *p;
KnotInfo *info = find_knot_type(type);
+ if (!info && type!= ' ')
+ {
+ /* FIXME: make L/l follow M/m */
+ info = previnfo;
+ type = previnfo->type;
+ }
if (info)
+ {
switch (info->pairs)
{
case 0:
@@ -1617,6 +1625,8 @@
priv->path = gegl_vector_path_add3 (priv->path, type, x0, y0, x1, y1, x2, y2);
break;
}
+ previnfo = info;
+ }
p++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]