This commit is contained in:
Juergen Spitzmueller 2021-01-09 09:17:41 +01:00
parent 5d90968f7a
commit b5f83881ab

View File

@ -1672,7 +1672,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
while (cur.pit() + offset <= cur.lastpit()) {
Paragraph cpar = pars_[cur.pit() + offset];
depth_type nextpar_depth = cpar.params().depth();
if (cur_depth <= nextpar_depth) {
if (cur_depth <= nextpar_depth && nextpar_depth > 0) {
nextpars_depth.push_back(nextpar_depth);
cur_depth = nextpar_depth;
++offset;