diff options
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 6e69fcb521..fdf43124b0 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -146,13 +146,10 @@ void NewstoryListData::AddSelection(int iFirst, int iLast) bool NewstoryListData::AtBottom(void) const { - if (cachedMaxDrawnItem == -1) + if (scrollTopItem > cachedMaxTopItem) return true; - if (cachedMaxDrawnItem > totalCount) - return true; - - if (cachedMaxDrawnItem == totalCount && cachedMaxTopPixel >= scrollTopPixel) + if (scrollTopItem == cachedMaxTopItem && cachedMaxTopPixel >= scrollTopPixel) return true; return false; |