diff options
Diffstat (limited to 'Source/NoodleLineNumberView.m')
-rw-r--r-- | Source/NoodleLineNumberView.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/NoodleLineNumberView.m b/Source/NoodleLineNumberView.m index 32bd42f6..1f8e4e50 100644 --- a/Source/NoodleLineNumberView.m +++ b/Source/NoodleLineNumberView.m @@ -79,7 +79,11 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range); [self font], NSFontAttributeName, [self textColor], NSForegroundColorAttributeName, nil] retain]; +#ifndef SP_REFACTOR NSSize s = [[NSString stringWithString:@"8"] sizeWithAttributes:textAttributes]; +#else + NSSize s = [@"8" sizeWithAttributes:textAttributes]; +#endif maxWidthOfGlyph = s.width; maxHeightOfGlyph = s.height; [self updateGutterThicknessConstants]; @@ -131,7 +135,11 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range); font, NSFontAttributeName, [self textColor], NSForegroundColorAttributeName, nil] retain]; +#ifndef SP_REFACTOR NSSize s = [[NSString stringWithString:@"8"] sizeWithAttributes:textAttributes]; +#else + NSSize s = [@"8" sizeWithAttributes:textAttributes]; +#endif maxWidthOfGlyph = s.width; maxHeightOfGlyph = s.height; [self updateGutterThicknessConstants]; @@ -157,7 +165,11 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range); [self font], NSFontAttributeName, textColor, NSForegroundColorAttributeName, nil] retain]; +#ifndef SP_REFACTOR NSSize s = [[NSString stringWithString:@"8"] sizeWithAttributes:textAttributes]; +#else + NSSize s = [@"8" sizeWithAttributes:textAttributes]; +#endif maxWidthOfGlyph = s.width; maxHeightOfGlyph = s.height; [self updateGutterThicknessConstants]; |