* Buffer.cpp: fix the fix (r31082): only add a default index if we do not have one.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31086 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-08-17 08:28:57 +00:00
parent 3fa15cc0a0
commit bb3ac8a865

View File

@ -568,8 +568,6 @@ int Buffer::readHeader(Lexer & lex)
params().clearRemovedModules();
params().pdfoptions().clear();
params().indiceslist().clear();
// default index
params().indiceslist().addDefault(B_("Index"));
params().backgroundcolor = lyx::rgbFromHexName("#ffffff");
for (int i = 0; i < 4; ++i) {
@ -695,6 +693,9 @@ bool Buffer::readDocument(Lexer & lex)
}
}
}
// assure we have a default index
params().indiceslist().addDefault(B_("Index"));
// read main text
bool const res = text().read(lex, errorList, d->inset);