From 123c8e72ce22a3de2cac29876d869e04f4b5230c Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 10 Dec 2009 05:28:45 +0000 Subject: [PATCH] one more tweak --- macosx/MessageWindowController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index eef7de6cf..799f46100 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -158,7 +158,7 @@ [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]; const BOOL shouldScroll = currentIndex == 0 || [scroller floatValue] == 1.0 || [scroller isHidden]