Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 94f8915

Browse files
author
Sam Spencer
committed
Draws lines once, fixed line retracing
Fixes #220 in accordance with Apple Documentation. Removed calls to `closePath` on BEMLine to prevent the lines being retraced.
1 parent aa51b11 commit 94f8915

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Classes/BEMLine.m

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ - (void)drawRect:(CGRect)rect {
7878
[referenceFramePath moveToPoint:CGPointMake(self.frame.size.width - self.referenceLineWidth/4, self.frame.size.height)];
7979
[referenceFramePath addLineToPoint:CGPointMake(self.frame.size.width - self.referenceLineWidth/4, 0)];
8080
}
81-
82-
[referenceFramePath closePath];
8381
}
8482

8583
if (self.enableRefrenceLines == YES) {
@@ -100,8 +98,6 @@ - (void)drawRect:(CGRect)rect {
10098
[verticalReferenceLinesPath moveToPoint:initialPoint];
10199
[verticalReferenceLinesPath addLineToPoint:finalPoint];
102100
}
103-
104-
[verticalReferenceLinesPath closePath];
105101
}
106102

107103
if (self.arrayOfHorizontalRefrenceLinePoints.count > 0) {
@@ -112,8 +108,6 @@ - (void)drawRect:(CGRect)rect {
112108
[horizontalReferenceLinesPath moveToPoint:initialPoint];
113109
[horizontalReferenceLinesPath addLineToPoint:finalPoint];
114110
}
115-
116-
[horizontalReferenceLinesPath closePath];
117111
}
118112
}
119113

@@ -131,8 +125,6 @@ - (void)drawRect:(CGRect)rect {
131125

132126
[averageLinePath moveToPoint:initialPoint];
133127
[averageLinePath addLineToPoint:finalPoint];
134-
135-
[averageLinePath closePath];
136128
}
137129

138130

0 commit comments

Comments
 (0)