]> git.lyx.org Git - features.git/commit
Fix crash that occurs if the cursor is in a table cell when the document class
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 21 May 2006 17:33:03 +0000 (17:33 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 21 May 2006 17:33:03 +0000 (17:33 +0000)
commit2392e19c664a292db0615b410695f451886cbb56
tree2f939b466cc2a72c50c35923e0ce0d8dac0c415f
parent7aeddf0bc3a032848ae9bb74dd9e28c125f969b5
Fix crash that occurs if the cursor is in a table cell when the document class
is changed
* src/cursor.C: remove unused 'using std::swap'
* src/BufferView.C: ditto

* src/CutAndPaste.[Ch]
(switchBetweenClasses): replace ParagraphList argument with InsetText
argument. This avoids an unnecessary swap in lyxfunc.C.

* src/CutAndPaste.C
(pasteSelectionHelper): Adjust to the changes above
(pasteSelectionHelper): Use ParagraphList::swap instead of std::swap.
This fixes the crash.

* src/lyxfunc.C
(LyXFunc::dispatch): Adjust to switchBetweenClasses changes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13895 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferView.C
src/CutAndPaste.C
src/CutAndPaste.h
src/cursor.C
src/lyxfunc.C