librsvg r1152 - trunk



Author: doml
Date: Sun Feb 24 14:32:59 2008
New Revision: 1152
URL: http://svn.gnome.org/viewvc/librsvg?rev=1152&view=rev

Log:
2008-02-24  Dominic Lachowicz <domlachowicz gmail com>

	* rsvg-path.c (rsvg_parse_path_do_cmd): If a moveto is followed 
by 
	multiple pairs of coordinates, the subsequent pairs are treated 
as 
	implicit lineto commands. (#482787)


Modified:
   trunk/ChangeLog
   trunk/rsvg-path.c

Modified: trunk/rsvg-path.c
==============================================================================
--- trunk/rsvg-path.c	(original)
+++ trunk/rsvg-path.c	Sun Feb 24 14:32:59 2008
@@ -203,6 +203,7 @@
             ctx->cpx = ctx->rpx = ctx->params[0];
             ctx->cpy = ctx->rpy = ctx->params[1];
             ctx->param = 0;
+	    ctx->cmd = 'l'; /* implicit linetos after a moveto */
         }
         break;
     case 'l':
@@ -451,6 +452,7 @@
             }
             ctx->params[ctx->param++] = val;
             rsvg_parse_path_do_cmd (ctx, FALSE);
+
             in_num = FALSE;
         }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]