fix to not override a set fill color
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -123,7 +123,8 @@ | @@ -123,7 +123,8 @@ | ||
123 | 123 | ||
124 | shapeLayer.lineWidth = scaledLineWidth; | 124 | shapeLayer.lineWidth = scaledLineWidth; |
125 | 125 | ||
126 | - shapeLayer.fillColor = [[UIColor colorWithPatternImage:self.fillPatternImage] CGColor]; | 126 | + if (self.fillPatternImage) |
127 | + shapeLayer.fillColor = [[UIColor colorWithPatternImage:self.fillPatternImage] CGColor]; | ||
127 | 128 | ||
128 | if (lineDashLengths) | 129 | if (lineDashLengths) |
129 | { | 130 | { |
-
Please register or login to post a comment