mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
Rerun makeindex if all nomencl entries have been removed (#8905)
This commit is contained in:
parent
44df37ab2a
commit
027b5dc4af
@ -268,7 +268,12 @@ int LaTeX::run(TeXErrors & terr)
|
|||||||
runparams);
|
runparams);
|
||||||
}
|
}
|
||||||
FileName const nlofile(changeExtension(file.absFileName(), ".nlo"));
|
FileName const nlofile(changeExtension(file.absFileName(), ".nlo"));
|
||||||
if (head.haschanged(nlofile))
|
// If all nomencl entries are removed, nomencl writes an empty nlo file.
|
||||||
|
// DepTable::hasChanged() returns false in this case, since it does not
|
||||||
|
// distinguish empty files from non-existing files. This is why we need
|
||||||
|
// the extra checks here (to trigger a rerun). Cf. discussions in #8905.
|
||||||
|
// FIXME: Sort out the real problem in DepTable.
|
||||||
|
if (head.haschanged(nlofile) || (nlofile.exists() && nlofile.isFileEmpty()))
|
||||||
rerun |= runMakeIndexNomencl(file, ".nlo", ".nls");
|
rerun |= runMakeIndexNomencl(file, ".nlo", ".nls");
|
||||||
FileName const glofile(changeExtension(file.absFileName(), ".glo"));
|
FileName const glofile(changeExtension(file.absFileName(), ".glo"));
|
||||||
if (head.haschanged(glofile))
|
if (head.haschanged(glofile))
|
||||||
|
Loading…
Reference in New Issue
Block a user