mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Fix crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23885 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2e9d0f7524
commit
9cdb718aa5
@ -1603,6 +1603,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
DocumentClass * oldClass = buffer->params().documentClassPtr();
|
||||
LayoutFileIndex bc = buffer->params().baseClassID();
|
||||
LayoutFileList::get().reset(bc);
|
||||
buffer->params().setBaseClass(bc);
|
||||
buffer->params().makeDocumentClass();
|
||||
updateLayout(oldClass, buffer);
|
||||
updateFlags = Update::Force | Update::FitCursor;
|
||||
|
Loading…
Reference in New Issue
Block a user