From c284fca7758b77326ddc9f2e7c079d1c47b431f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Wed, 21 Sep 2005 22:48:52 +0000 Subject: [PATCH] brbak : fixes repositioning of text (from bug 749) svn path=/trunk/; revision=17976 --- reactos/lib/user32/controls/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/user32/controls/edit.c b/reactos/lib/user32/controls/edit.c index be0d0768733..3800ae8daba 100644 --- a/reactos/lib/user32/controls/edit.c +++ b/reactos/lib/user32/controls/edit.c @@ -2919,7 +2919,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;