richedit: Fixed regression that caused endless loop.
This commit is contained in:
parent
f296f27e96
commit
e86a1d623a
|
@ -338,6 +338,11 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p)
|
||||||
/* TAB: we can split before */
|
/* TAB: we can split before */
|
||||||
if (run->nFlags & MERF_TAB) {
|
if (run->nFlags & MERF_TAB) {
|
||||||
wc->bOverflown = TRUE;
|
wc->bOverflown = TRUE;
|
||||||
|
if (wc->pRowStart == p)
|
||||||
|
/* Don't split before the start of the run, or we will get an
|
||||||
|
* endless loop. */
|
||||||
|
return p->next;
|
||||||
|
else
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
/* graphics: we can split before, if run's width is smaller than row's width */
|
/* graphics: we can split before, if run's width is smaller than row's width */
|
||||||
|
|
Loading…
Reference in New Issue