Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switched workaround DTVersion usage to new property names

  • Loading branch information...
commit c70a9b5277f1358dd1cd84ade15a9ecf64072618 1 parent 182e8d9
@Cocoanetics authored
View
2  Core/Source/DTCoreTextFontDescriptor.m
@@ -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;
}
View
4 Core/Source/DTCoreTextLayoutFrame.m
@@ -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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.