diff --git a/src/org/ntlab/deltaViewer/DeltaViewer.java b/src/org/ntlab/deltaViewer/DeltaViewer.java index 6781893..0288507 100644 --- a/src/org/ntlab/deltaViewer/DeltaViewer.java +++ b/src/org/ntlab/deltaViewer/DeltaViewer.java @@ -1626,7 +1626,19 @@ double ey = state.getAbsolutePoint(3).getY(); Path2D.Double p = new Path2D.Double(); p.moveTo((int) sx, (int) sy); - p.curveTo((int) tx1, (int) sy, (int) tx2, (int) ty2, (int) ex, (int) ey); + p.quadTo((int) tx2, (int) ty2, (int) ex, (int) ey); +// p.curveTo((int) tx1, (int) ty1, (int) tx2, (int) ty2, (int) ex, (int) ey); + canvas.getGraphics().draw(p); + } else if (state.getAbsolutePointCount() == 3) { + double sx = state.getAbsolutePoint(0).getX(); + double sy = state.getAbsolutePoint(0).getY(); + double tx = state.getAbsolutePoint(1).getX(); + double ty = state.getAbsolutePoint(1).getY(); + double ex = state.getAbsolutePoint(2).getX(); + double ey = state.getAbsolutePoint(2).getY(); + Path2D.Double p = new Path2D.Double(); + p.moveTo((int) sx, (int) sy); + p.quadTo((int) tx, (int) ty, (int) ex, (int) ey); canvas.getGraphics().draw(p); } }