git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33800 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-03-19 13:35:32 +00:00
parent 1a1bf4988b
commit f91cd9d255

View File

@ -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;
}