mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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:
parent
8251763d47
commit
faa1ba4b5b
@ -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).
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user