diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/flpsed.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flpsed.cxx b/src/flpsed.cxx index deffd73..f568255 100644 --- a/src/flpsed.cxx +++ b/src/flpsed.cxx @@ -84,7 +84,8 @@ void scroll_to_begin() { void scroll_to_end() { assert(scroll && psed_p); - scroll->position(0, psed_p->h() - scroll->h()); + int new_pos = psed_p->h() > scroll->h() ? psed_p->h() - scroll->h() : 0; + scroll->position(0, new_pos); scroll->redraw(); } |