mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Show child documents in outline with their paths.
This commit is contained in:
parent
a8de13632a
commit
35aaa1c528
@ -1346,8 +1346,10 @@ void InsetInclude::addToToc(DocIterator const & cpit, bool output_active,
|
||||
Buffer const * const childbuffer = loadIfNeeded();
|
||||
|
||||
TocBuilder & b = backend.builder("child");
|
||||
docstring str = childbuffer ? childbuffer->fileName().displayName()
|
||||
: from_ascii("?");
|
||||
string const fname = ltrim(to_utf8(params()["filename"]));
|
||||
// mark non-existent childbuffer with FILE MISSING
|
||||
docstring const str = (childbuffer ? from_ascii("") : _("FILE MISSING: "))
|
||||
+ from_utf8(onlyFileName(fname)) + " (" + from_utf8(fname) + ")";
|
||||
b.pushItem(cpit, str, output_active);
|
||||
b.pop();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user