one more tweak

This commit is contained in:
Mitchell Livingston 2009-12-10 05:28:45 +00:00
parent 23b652d2bc
commit 123c8e72ce
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@
[fLock lock]; [fLock lock];
NSUInteger currentIndex = [fMessages count] > 0 ? [[[fMessages lastObject] objectForKey: @"Index"] unsignedIntegerValue] : 0; NSUInteger currentIndex = [fMessages count] > 0 ? ([[[fMessages lastObject] objectForKey: @"Index"] unsignedIntegerValue] + 1) : 0;
NSScroller * scroller = [[fMessageTable enclosingScrollView] verticalScroller]; NSScroller * scroller = [[fMessageTable enclosingScrollView] verticalScroller];
const BOOL shouldScroll = currentIndex == 0 || [scroller floatValue] == 1.0 || [scroller isHidden] const BOOL shouldScroll = currentIndex == 0 || [scroller floatValue] == 1.0 || [scroller isHidden]