提交 d5f6dbf1 编写于 作者: M Mathieu Bastian

Fix NaN issue with negative length curved edges

上级 0d467f0c
......@@ -513,6 +513,11 @@ public class EdgeRenderer implements Renderer {
final Helper h = new Helper(item, properties);
final Color color = getColor(item, properties);
// Do not draw the edge if negative length
if (h.asweep == 0) {
return;
}
if (target instanceof G2DTarget) {
final Graphics2D graphics = ((G2DTarget) target).getGraphics();
graphics.setStroke(new BasicStroke(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册