Skip to content

Commit

Permalink
Merge d5a89f9 into 6fa0704
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-muir committed Aug 26, 2013
2 parents 6fa0704 + d5a89f9 commit cd3e2a4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/convertPathData.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ function collapseRepeated(path) {
item.instruction === prev.instruction
) {
// increase previous h or v data with current
if (item.instruction === 'h' || item.instruction === 'v') {
if ((item.instruction === 'h' || item.instruction === 'v')&& (prev.data[0] >= 0) == (item.data[0] >= 0)) {
prev.data[0] += item.data[0];
// concat previous data with current
} else {
Expand Down
31 changes: 31 additions & 0 deletions test/plugins/convertPathData.12.svg
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 cd3e2a4

Please sign in to comment.