]> git.lyx.org Git - features.git/commitdiff
Use real cursor pit, not the modified one.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 31 Dec 2017 08:41:43 +0000 (09:41 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 31 Dec 2017 08:41:43 +0000 (09:41 +0100)
src/Text3.cpp

index a65de1d7514d31bf4e39702e2071aa97f16a134a..0c48da2b7ce760471c8c55f69b2873a88419884c 100644 (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();