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