]> git.lyx.org Git - features.git/commitdiff
Fix bug #11612.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 11 Jul 2019 20:20:10 +0000 (16:20 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 11 Jul 2019 20:25:46 +0000 (16:25 -0400)
Register verbatim includes with the outliner.

(cherry picked from commit 6960bab65c07f36d3ab3b401214fc4f0b36f39ea)

src/insets/InsetInclude.cpp
status.23x

index 7c0d6ce5505a3f86d7b1cc15f2b9ed4cdf662b03..19fbeae5166a9d0bbcf6915c3e5a6455efe9efed 100644 (file)
@@ -1258,8 +1258,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");
index b3c918724f2b8e334a874750770edf1f77a93eac..bec2dd04632b164c63ca108192b6bfdaa2cb0881 100644 (file)
@@ -100,6 +100,8 @@ What's new
 
 - Fix right and left layout alignment (in workarea) with RTL (bug 11606).
 
+- Show filenames for verbatim includes in outliner (bug 11612).
+
 
 * INTERNALS