]> git.lyx.org Git - lyx.git/commit
Fix bug 3303 from Bernhard Roider. Some explanation:
authorAbdelrazak Younes <younes@lyx.org>
Mon, 5 Mar 2007 13:16:55 +0000 (13:16 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 5 Mar 2007 13:16:55 +0000 (13:16 +0000)
commitfe4869557735548397f63e31fef10d0d6205108e
tree0183b10b00b50c9cea8e343e487acaa3ffbad4ac
parent1734c7c9ac122904f40fb531fcc03a1e672d0f1d
Fix bug 3303 from Bernhard Roider. Some explanation:

The problem was that pit is a reference to cur.pit() and was set to lastpit() + 1 before calling recordUndo(cur, ...). thus an invalid cursor position was stored in the undo buffer.
A side effect of the attached patch is that now the cursor keeps staying in the moved section header  on undo (which is not the case in current trunk)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17410 a592a061-630c-0410-9148-cb99ea01b6c8
src/toc.C