From: Richard Kimberly Heck Date: Thu, 11 Jul 2019 20:20:10 +0000 (-0400) Subject: Fix bug #11612. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2946e7bc4a9df3432d000d18b4b24f19790a9b73;p=features.git Fix bug #11612. Register verbatim includes with the outliner. --- diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index e99645d8d6..281051541b 100755 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -1314,8 +1314,12 @@ void InsetInclude::addToToc(DocIterator const & cpit, bool output_active, b.pushItem(cpit, screenLabel(), output_active); InsetListingsParams p(to_utf8(params()["lstparams"])); b.argumentItem(from_utf8(p.getParamValue("caption"))); - b.pop(); - } else { + b.pop(); + } else if (isVerbatim(params())) { + TocBuilder & b = backend.builder("child"); + b.pushItem(cpit, screenLabel(), output_active); + b.pop(); + } else { Buffer const * const childbuffer = getChildBuffer(); TocBuilder & b = backend.builder("child");