Skip to content

Commit

Permalink
switched workaround DTVersion usage to new property names
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Sep 25, 2012
1 parent 182e8d9 commit c70a9b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Core/Source/DTCoreTextFontDescriptor.m
Expand Up @@ -70,7 +70,7 @@ + (void)initialize
DTVersion *version = [DTVersion osVersion];

// seems to be fixed in iOS 6
if (version.majorVersion<6)
if (version.major<6)
{
_needsChineseFontCascadeFix = YES;
}
Expand Down
4 changes: 1 addition & 3 deletions Core/Source/DTCoreTextLayoutFrame.m
Expand Up @@ -507,9 +507,7 @@ - (void)_buildLinesWithStandardFramesetter
//[self _correctLineOrigins];

// --- begin workaround for image squishing bug in iOS < 4.2
DTVersion *version = [DTVersion osVersion];

if (version.majorVersion<4 || (version.majorVersion==4 && version.minorVersion < 2))
if ([DTVersion osVersionIsLessThen:@"4.2"])
{
[self _correctAttachmentHeights];
}
Expand Down

0 comments on commit c70a9b5

Please sign in to comment.