Make long lines behave nicely.

This commit is contained in:
Lauri Tulmin 2005-01-17 19:31:48 +00:00 committed by Alexandre Julliard
parent fc5ce14592
commit 8ba0ef86dc
1 changed files with 1 additions and 1 deletions

View File

@ -2843,7 +2843,7 @@ static BOOL EDIT_EM_LineScroll_internal(EDITSTATE *es, INT dx, INT dy)
dx = es->text_width - x_offset_in_pixels;
nyoff = max(0, es->y_offset + dy);
if (nyoff >= es->line_count - lines_per_page)
nyoff = es->line_count - lines_per_page;
nyoff = max(0, es->line_count - lines_per_page);
dy = (es->y_offset - nyoff) * es->line_height;
if (dx || dy) {
RECT rc1;