Jürgen Spitzmüller wrote:
Abdelrazak Younes wrote:
Obvious candidates for the brown paper bag:

http://www.lyx.org/trac/changeset/19057

Unlikely (this affects only LaTeX output).

http://www.lyx.org/trac/changeset/19046

Reverting this does not fix the crash.

I was wrong, see my other post. Here is an obvious fix (not tested).

Abdel.
Index: Text3.cpp
===================================================================
--- Text3.cpp   (revision 19064)
+++ Text3.cpp   (working copy)
@@ -377,6 +377,7 @@
                std::swap(pars_[pit], pars_[pit + 1]);
                updateLabels(cur.buffer());
                needsUpdate = true;
+               ++cur.pit();
                break;
        }
 
@@ -386,6 +387,7 @@
                finishUndo();
                std::swap(pars_[pit], pars_[pit - 1]);
                updateLabels(cur.buffer());
+               --cur.pit();
                needsUpdate = true;
                break;
        }

Reply via email to