]> git.lyx.org Git - lyx.git/commit
Fix bug #6930: no undo for inset type changing
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Nov 2010 09:47:46 +0000 (09:47 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Nov 2010 09:47:46 +0000 (09:47 +0000)
commit574931dcdb04f0b3be09dc7a2305611c5e88ed78
tree9d74633d25b2f6e5c2f2ee2b790a5fa0adaa5452
parentbaaceb10c2f3a5accf48d9fce6c3065c7f1a1147
Fix bug #6930: no undo for inset type changing

THis is a consequence of the new AtPoint mechanism. In the old
world, recordUndoInset was called before INSET_MODIFY. I reintroduced
manual recordUndoInset calls in all places that matter. I suspect
that this issue should be revisited later.

Note that recordUndoInset can now take an optional parameter that tells
what inset is concerned. This is useful because the cursor can be
either just inside the inset or in front of it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36580 a592a061-630c-0410-9148-cb99ea01b6c8
17 files changed:
src/Cursor.cpp
src/Cursor.h
src/Undo.cpp
src/Undo.h
src/insets/InsetBox.cpp
src/insets/InsetCommand.cpp
src/insets/InsetInclude.cpp
src/insets/InsetIndex.cpp
src/insets/InsetInfo.cpp
src/insets/InsetNewline.cpp
src/insets/InsetNewpage.cpp
src/insets/InsetNote.cpp
src/insets/InsetPhantom.cpp
src/insets/InsetScript.cpp
src/insets/InsetSpace.cpp
src/insets/InsetVSpace.cpp
src/mathed/InsetMathSpace.cpp