diff --git a/src/Text3.cpp b/src/Text3.cpp index a65de1d751..0c48da2b7c 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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();