Skip to content

Commit

Permalink
now hopefully the #if is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Feb 1, 2012
1 parent 58cb851 commit 47ee149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Source/DTHTMLElement.m
Expand Up @@ -112,7 +112,7 @@ - (NSDictionary *)attributesDictionary
// add text attachment
if (textAttachment)
{
#ifdef TARGET_OS_IPHONE
#if TARGET_OS_IPHONE
// need run delegate for sizing (only supported on iOS)
CTRunDelegateRef embeddedObjectRunDelegate = createEmbeddedObjectRunDelegate(textAttachment);
[tmpDict setObject:CFBridgingRelease(embeddedObjectRunDelegate) forKey:(id)kCTRunDelegateAttributeName];
Expand Down Expand Up @@ -324,7 +324,7 @@ - (NSAttributedString *)prefixForListItem
attachment.contentType = DTTextAttachmentTypeImage;
attachment.displaySize = image.size;

#ifdef TARGET_OS_IPHONE
#if TARGET_OS_IPHONE
// need run delegate for sizing
CTRunDelegateRef embeddedObjectRunDelegate = createEmbeddedObjectRunDelegate(attachment);
[attributes setObject:CFBridgingRelease(embeddedObjectRunDelegate) forKey:(id)kCTRunDelegateAttributeName];
Expand Down

0 comments on commit 47ee149

Please sign in to comment.