Skip to content

Commit

Permalink
plugins/convertTransforms: wrong translate() shorthand (fix #94)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsweet committed Feb 6, 2013
1 parent 3517f82 commit 3faa6d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/_transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ var transformToMatrix = exports.transformToMatrix = function(transform) {
switch(transform.name) {
case 'translate':
// [1, 0, 0, 1, tx, ty]
matrix = [1, 0, 0, 1, transform.data[0], transform.data[1] || transform.data[0]];
matrix = [1, 0, 0, 1, transform.data[0], transform.data[1] || 0];
break;
case 'scale':
// [sx, 0, 0, sy, 0, 0]
Expand Down
1 change: 1 addition & 0 deletions test/plugins/convertTransform.02.orig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions test/plugins/convertTransform.02.should.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3faa6d1

Please sign in to comment.