Skip to content

Commit

Permalink
Merge branch 'od/issue_496' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Aug 15, 2013
2 parents 809f9d6 + b0c0fc2 commit 8684a39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Core/Source/DTCompatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
#define DTCORETEXT_NEEDS_ATTRIBUTE_REPLACEMENT_LEAK_FIX 1
#endif

// iOS 7 bug (rdar://14684188) workaround, can be removed once this bug is fixed
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
#define DTCORETEXT_FIX_14684188 1
#endif

#endif


Expand Down
5 changes: 5 additions & 0 deletions Core/Source/DTHTMLAttributedStringBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ - (BOOL)_buildString
_defaultTag.paragraphStyle = _defaultParagraphStyle;
_defaultTag.textScale = _textScale;

#if DTCORETEXT_FIX_14684188
// workaround, only necessary while rdar://14684188 is not fixed
_defaultTag.textColor = [UIColor blackColor];
#endif

id defaultColor = [_options objectForKey:DTDefaultTextColor];
if (defaultColor)
{
Expand Down

0 comments on commit 8684a39

Please sign in to comment.