diff options
author | Bibiko <bibiko@eva.mpg.de> | 2012-01-05 19:03:06 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2012-01-05 19:03:06 +0000 |
commit | a7ad078dba900161a6f686608fbd015658323de3 (patch) | |
tree | 39b335f44ff1462c2b658315be90e39e5c16113e /Source/NoodleLineNumberView.m | |
parent | 57038f69654481ed424d6b81ec8b268f2ad4a3bf (diff) | |
download | sequelpro-a7ad078dba900161a6f686608fbd015658323de3.tar.gz sequelpro-a7ad078dba900161a6f686608fbd015658323de3.tar.bz2 sequelpro-a7ad078dba900161a6f686608fbd015658323de3.zip |
• fixed issue for line numbering view if associated textView is scrolled from origin {0,0}; now it's synchronized
• minor speed ups for custom query editor
Diffstat (limited to 'Source/NoodleLineNumberView.m')
-rw-r--r-- | Source/NoodleLineNumberView.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/NoodleLineNumberView.m b/Source/NoodleLineNumberView.m index 5e707f98..193c9ada 100644 --- a/Source/NoodleLineNumberView.m +++ b/Source/NoodleLineNumberView.m @@ -206,7 +206,7 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range); if([[clientView textStorage] editedMask] != 1) [self invalidateLineIndices]; - [self setNeedsDisplay:YES]; + [self setNeedsDisplayInRect:[self bounds]]; } @@ -540,9 +540,7 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range); (void)(*addObjectIMP)(lineIndices, addObjectSel, (*numberWithUnsignedIntegerIMP)(numberClass, numberWithUnsignedIntegerSel, anIndex)); NSUInteger lineCount = [lineIndices count]; - if(lineCount < 10) - newThickness = maxWidthOfGlyph1; - else if(lineCount < 100) + if(lineCount < 100) newThickness = maxWidthOfGlyph2; else if(lineCount < 1000) newThickness = maxWidthOfGlyph3; |