Fix issue with relative commands after Z.

Closes #413.
This commit is contained in:
Jürg Lehni 2014-03-13 00:52:24 +01:00
parent afcabea1a7
commit e80991658b

View file

@ -221,7 +221,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
var length = coords && coords.length;
relative = command === lower;
if (previous === 'z' && lower !== 'z')
this.moveTo(start);
this.moveTo(current = start);
switch (lower) {
case 'm':
case 'l':