Skip to content

Commit 31ddb7c

Browse files
committed
Fix a bug where the fromPoint and toPoint's line segment is not set when constructing the DataLineSegment
1 parent a571783 commit 31ddb7c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/paintcomponents/DataLineSegment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ public class DataLineSegment<T> extends LineSegment {
44

55
public DataLineSegment(DataFromPoint<T> fromPoint, DataToPoint<T> toPoint) {
66
super(fromPoint, toPoint);
7+
fromPoint.setLineSegment(this);
8+
toPoint.setLineSegment(this);
79

810
}
911

0 commit comments

Comments
 (0)