Skip to content
Browse files

switched workaround DTVersion usage to new property names

  • Loading branch information...
1 parent 182e8d9 commit c70a9b5277f1358dd1cd84ade15a9ecf64072618 @odrobnik odrobnik committed
Showing with 2 additions and 4 deletions.
  1. +1 −1 Core/Source/DTCoreTextFontDescriptor.m
  2. +1 −3 Core/Source/DTCoreTextLayoutFrame.m
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];
}

0 comments on commit c70a9b5

Please sign in to comment.
Something went wrong with that request. Please try again.