bug 1987: Crash when switching to different document class

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10456 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-09-19 09:55:49 +00:00
parent 8251763d47
commit faa1ba4b5b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-09-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxfunc.C (dispatch): LFUN_TEXTCLASS_APPLY: actually set the
textclass; do not record undo if nothing is changed.
2005-09-16 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* text3.C (dispatch): recordUndo in LFUN_PASTESELECTION (#2011).

View File

@ -1485,7 +1485,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
}
case LFUN_TEXTCLASS_APPLY: {
recordUndoFullDocument(view());
Buffer * buffer = owner->buffer();
lyx::textclass_type const old_class =
@ -1505,6 +1504,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
break;
owner->message(_("Converting document to new document class..."));
recordUndoFullDocument(view());
buffer->params().textclass = new_class;
StableDocIterator backcur(view()->cursor());
ErrorList el;
lyx::cap::SwitchBetweenClasses(