Fix winding contribution case for horizontal curves

This commit is contained in:
hkrish 2014-01-28 18:04:09 +01:00
parent acaf637f26
commit 74c4df9b8c

View file

@ -454,8 +454,6 @@ var PathItem = Item.extend(/** @lends PathItem# */{
}
}
}
yTop = yTop === -Infinity ? y : yTop;
yBot = yBot === Infinity ? y : yBot;
// Shift the point lying on the horizontal curves by
// half of closest top and bottom intercepts.
yTop = (yTop + y) / 2;