fix update file

This commit is contained in:
Branislav Stojkovic
2019-01-13 18:26:05 +01:00
parent 2266dadcba
commit e2e33a1b13
2 changed files with 3 additions and 1 deletions
@@ -103,6 +103,7 @@ public class Line extends AbstractLeadedComponent<Void> {
g2d.fill(getArrow());
g2d.setTransform(oldTx);
// make the line slightly shorter so line end doesn't overlap with the arrow
double distance = distance(startPoint, endPoint);
interpolate(startPoint, endPoint, getArrowSize().convertToPixels() * 0.9 / distance, startPoint);
}
@@ -116,6 +117,7 @@ public class Line extends AbstractLeadedComponent<Void> {
g2d.fill(getArrow());
g2d.setTransform(oldTx);
// make the line slightly shorter so line end doesn't overlap with the arrow
double distance = distance(startPoint, endPoint);
interpolate(endPoint, startPoint, getArrowSize().convertToPixels() * 0.9 / distance, endPoint);
}