# HG changeset patch # User Thinker K.F. Li # Date 1281691585 -28800 # Node ID 594827d0f3e54814fec4a1d5c32f4fc60419c135 # Parent fdd68e69c59f650dac2502bb00e7d76b1b0b356f Fix issue of relative path data. A absolutely location, that is used to computed respective absolutely location of relative location, must be updated after parsing every segment of a path. But, it does not. It is fixed, now. diff -r fdd68e69c59f -r 594827d0f3e5 src/shape_path.c --- a/src/shape_path.c Fri Aug 13 17:20:17 2010 +0800 +++ b/src/shape_path.c Fri Aug 13 17:26:25 2010 +0800 @@ -626,6 +626,7 @@ if(p == old) return ERR; *pnts = TO_ABSX; + x = *pnts; pnts++; SKIP_SPACE(p); @@ -634,6 +635,7 @@ if(p == old) return ERR; *pnts = TO_ABSY; + y = *pnts; pnts++; *cmds++ = toupper(cmd); @@ -667,6 +669,7 @@ if(p == old) return ERR; *pnts = TO_ABSX; + x = *pnts; pnts++; SKIP_SPACE(p); @@ -675,6 +678,7 @@ if(p == old) return ERR; *pnts = TO_ABSY; + y = *pnts; pnts++; *cmds++ = toupper(cmd); @@ -694,6 +698,7 @@ if(p == old) break; *pnts = TO_ABSX; + x = *pnts; pnts++; SKIP_SPACE(p); @@ -702,6 +707,7 @@ if(p == old) return ERR; *pnts = TO_ABSY; + y = *pnts; pnts++; *cmds++ = toupper(cmd);