mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
fix bug #6513.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33800 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1a1bf4988b
commit
f91cd9d255
@ -1827,7 +1827,7 @@ void GuiDocument::updateDefaultFormat()
|
||||
if (!bufferview())
|
||||
return;
|
||||
// make a copy in order to consider unapplied changes
|
||||
Buffer * tmpbuf = const_cast<Buffer *>(&buffer());
|
||||
Buffer * tmpbuf = buffer().clone();
|
||||
tmpbuf->params().useXetex = outputModule->xetexCB->isChecked();
|
||||
int idx = latexModule->classCO->currentIndex();
|
||||
if (idx >= 0) {
|
||||
@ -1847,6 +1847,8 @@ void GuiDocument::updateDefaultFormat()
|
||||
outputModule->defaultFormatCO->addItem(qt_((*cit)->prettyname()),
|
||||
QVariant(toqstr((*cit)->name())));
|
||||
outputModule->defaultFormatCO->blockSignals(false);
|
||||
// delete the copy
|
||||
delete tmpbuf;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user