Skip to content

Commit

Permalink
bugfix: ibireme#434
Browse files Browse the repository at this point in the history
  • Loading branch information
ibireme committed Aug 5, 2016
1 parent eb6ab79 commit 944fedf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions YYText/Component/YYTextLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ + (YYTextLayout *)layoutWithContainer:(YYTextContainer *)container text:(NSAttri

// set cgPath and cgPathBox
if (container.path == nil && container.exclusionPaths.count == 0) {
if (container.size.width <= 0 || container.size.height <= 0) goto fail;
CGRect rect = (CGRect) {CGPointZero, container.size };
rect = UIEdgeInsetsInsetRect(rect, container.insets);
rect = CGRectStandardize(rect);
Expand Down

0 comments on commit 944fedf

Please sign in to comment.