user32: Only attempt autoscroll line breaking on an edit control when we have a reasonable width to break to.

This commit is contained in:
Aric Stewart 2011-11-01 14:48:35 -05:00 committed by Alexandre Julliard
parent 78bd84cc12
commit 5e32724210

View file

@ -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;