[LyX/master] Amend aaaae562dbac1
Juergen Spitzmueller
spitz at lyx.org
Sat Jan 9 08:17:26 UTC 2021
commit b5f83881ab9cb569965162012e18a80c2d775749
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sat Jan 9 09:17:41 2021 +0100
Amend aaaae562dbac1
---
src/Text3.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Text3.cpp b/src/Text3.cpp
index 869e709..25bc7ec 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -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;
More information about the lyx-cvs
mailing list