aboutsummaryrefslogtreecommitdiffstats
path: root/Source/NoodleLineNumberView.m
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2013-02-14 19:25:27 +0000
committersqlprodev <sqlprodev@northofthree.com>2013-02-14 19:25:27 +0000
commit47069472a4b5dc6655338a77ec8b1eb9a5f5c3d9 (patch)
treec135c5b21ece6bb5bd8f63d56f7e95fa9852abb4 /Source/NoodleLineNumberView.m
parentc37936d71c9c8ad9b721e33899bb118032466896 (diff)
downloadsequelpro-47069472a4b5dc6655338a77ec8b1eb9a5f5c3d9.tar.gz
sequelpro-47069472a4b5dc6655338a77ec8b1eb9a5f5c3d9.tar.bz2
sequelpro-47069472a4b5dc6655338a77ec8b1eb9a5f5c3d9.zip
Changes required to merge Sequel Pro r4011 into Coda
Diffstat (limited to 'Source/NoodleLineNumberView.m')
-rw-r--r--Source/NoodleLineNumberView.m12
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];