Commit 5e327242 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

user32: Only attempt autoscroll line breaking on an edit control when we have a…

user32: Only attempt autoscroll line breaking on an edit control when we have a reasonable width to break to.
parent 78bd84cc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment