Module: wine Branch: master Commit: 5e3272421026aa928f76751d022ade5914810a32 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e3272421026aa928f76751d02...
Author: Aric Stewart aric@codeweavers.com Date: Tue Nov 1 14:48:35 2011 -0500
user32: Only attempt autoscroll line breaking on an edit control when we have a reasonable width to break to.
---
dlls/user32/edit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index a0bc962..7971333 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -600,7 +600,7 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta /* Line breaks just look back from the end and find the next break and try that. */
if (!(es->style & ES_AUTOHSCROLL)) { - if (current_line->width > fw) { + if (current_line->width > fw && fw > es->char_width) {
INT prev, next; int w;