diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-15 15:00:00 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-15 15:00:00 +0300 |
commit | c12eecbb028bdc39e36e1a205f6ca898d52e0f9b (patch) | |
tree | 981829b9fc172eb2ee60637c37670568f4106949 /plugins/NewStory/src | |
parent | ce5f827f32e3efcf852cf91091706d59e0151a84 (diff) |
more fixes for #3736
Diffstat (limited to 'plugins/NewStory/src')
-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; |