Use real cursor pit, not the modified one.

This commit is contained in:
Juergen Spitzmueller 2017-12-31 09:41:43 +01:00
parent 9f9c2e022f
commit 167c38377c

View File

@ -1533,7 +1533,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
if (cpar.params().depth() == 0)
break;
}
if (outer && pit < cur.lastpit()) {
if (outer && cur.pit() < cur.lastpit()) {
// save nesting of following paragraph
cpar = pars_[cur.pit() + 1];
nextpar_depth = cpar.params().depth();